Open JamesMGreene opened 7 years ago
Replace NeDB's quasi-MongoDB query syntax with the json-criteria module to get a full-blown and fully compatible MongoDB query syntax implementation.
json-criteria
Note that this module's README mentions the need to do the following:
// npm install babel --save // Once at the entrypoint of your app. require('babel/register')
However, note that this runtime registration can be avoided by doing something like the following:
npm install --save-dev babel-cli@latest
"postinstall"
cd node_modules && cd json-criteria && babel src -d lib && cd .. && cd ..
If at all possible, maintain basic compatibility with NeDB-based modules like:
express-nedb-session
nedb-session-store
Another option is kofrasa/mingo, MongoDB query syntax for in-memory objects. 🤔
kofrasa/mingo
Replace NeDB's quasi-MongoDB query syntax with the
json-criteria
module to get a full-blown and fully compatible MongoDB query syntax implementation.Note that this module's README mentions the need to do the following:
However, note that this runtime registration can be avoided by doing something like the following:
npm install --save-dev babel-cli@latest
"postinstall"
script to the "package.json" file containing:cd node_modules && cd json-criteria && babel src -d lib && cd .. && cd ..