Sift.js: mongodb inspired array filting
github.com
github.com
Here are a few good examples which use sift:
- Realtime API library: https://github.com/crcn/guava
- Simple database written in node.js: https://github.com/crcn/gumbo. I use this primarily in command line utilities, and other applications where mongodb seems a bit over the top.
Underscore is certainly a better alternative in many cases, but the goal for sift is to provide control over filtering collections with one query versus manipulating them.
The second 90% has been not so great... I spend my time either doing in-place serialized batch updates to correct my own early schema mistakes or (mostly) reinventing SQL so that I can join my schemas arbitrarily and dump them to CSV per user requests.
I hope this means I'm just doing it wrong. Time to dig my Mongo book back out.