I am using lowdb to pop an object from a list
{
"posts": [
{ "id": a, "title": "lowdb is awesome"},
{ "id": b, "title": "lowdb is awesome"},
{ "id": c, "title": "lowdb is awesome"}
],
"user": {
"name": "typicode"
},
"count": 3
}
and need to figure out how to "pop" the first inserted object from posts:
db.get('posts')
.find()
.value()
which I expect to return { "id": a, "title": "lowdb is awesome"}
and the posts will reflect this