I've been working with lowdb to remove 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 now I'm trying to find a way to "pop" the first inserted object from posts:
db.get('posts')
.find()
.value()
My expectation is that this will return
{ "id": a, "title": "lowdb is awesome"}
and the posts array will be updated accordingly