lowdb-api
lowdb-api copied to clipboard
⚡️ lowdb-api - Express middleware that serve a virtual RESTful API.
I don't fully understand the reasons for this problem, but to me it looks like a bug in lowdb-api, lowdb or lodash. The steps to reproduce the issue are shown...
index.js ~ line 61 ``` const db = lowdb(new Adapter(file)); // db = Promise db._ - undefined error ```
I am adding a new index called **_data_** to protect the self-generated id in case the user adds a field **_ID_** #### For example, I am sending these values: ````javascript...
The structure you use to save the resources automatically generates an incremental ID, in which case you want to save this: ````javascript { id: 100, fname: "Joel", lname: "Jaime" }...