-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
The structure you use to save the resources automatically generates an incremental ID, in which case you want to save this:
{
id: 100,
fname: "Joel",
lname: "Jaime"
}I simply omit the ID field since I would try to replace the one generated by lowdb-api.
One suggestion would be that instead of an incremental ID you generate a kind of {_id: guid_format} (or any unique data) or have the identifier inside protected object:
{
core: {
id : AUTOGENERATED_ID
},
fname: "Joel",
lname: "Jaime"
}