natgeo/sails-neo4j — pull request #5 by wrousseau (2014-05-20 22:16:59+00:00)
Title: Implemented basic Node Waterline compatibility for Sails

Limited and manual tests for now but the following stuff were fixed/implemented :

* findAll through the find route which finds all objects of a model
* find (and the variants findByFirstName...) through the find/:id routes which find a specific object of given id
* create through the create route which creates an object with given key: values mappings
* destroy...
* update... you probably catch the drift by now
* some query modifiers such as ~= for case insensitive queries, and or :

where: {
or: [{name: {'~=':'James'}, {name: 'Mike'}]
}

For instance, this query modifier should pick all users whose name field is James (case insensitive) or Mike (case sensitive).

Note that the created sails model requires schema: true for some reason, not sure why yet.

If you would like to see a working example in action, you can check out https://github.com/wrousseau/place-to-crash