'Loopback 4 total entries count if id is not an autogenerated value
I have a local database in .json format which is being filled by Loopback 4 backend. In this database i have a table with primary key in string:
"User": {
"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC": "{\"ethAddress\":\"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC\"}",
"0x90F79bf6EB2c4f870365E785982E1f101E93b906": "{\"ethAddress\":\"0x90F79bf6EB2c4f870365E785982E1f101E93b906\"}"
}
And the count of the entries counts strangely:
"ids": {
"User": 8.276165414890503e+47
},
What happens? And also why is it always +1 if the primary key is auto generated number?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
