feathersjs-ecosystem / feathers-nedb

A service using NeDB, an embedded datastore for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Updating documents

lokenx opened this issue · comments

commented

Been giving NeDB a try and just found a small improvement for the docs. For the update method it's currently using just the id property to select the document, whereas NeDB typically supports any query that find also supports.

Some mention of this, and any other slightly changes from the default NeDB behaviour would be helpful!

@lokenx thanks for pointing that out!

We'll prioritize that as a special update to NeDB. We're making sure all the database adapters have a consistent API first. Then we'll circle back to expose some of the specific functionality that each db provides.

As always, feel free to ship a PR as that would help get it in sooner. 😃

This should work now with the new service functionality using service.update(null, params) or service.patch(null, params).