node-ultimate
node-ultimate copied to clipboard
Basic query operators should be allowed
For example
GET /api/myResource?limit=2&start=150&conditions={"name": {$regex: "foo"}} # where this of course is a encoded JSON object
Should be supported.
Well; quite obvious that this would be a huge step. Over at the seed project @pilwon mentioned that baucis is about to be (at least) looked at. baucis does in fact generate exactly those routes with the mentioned capabilities.
Not to be over enthusiastic, but wouldnt it be great if one could integrate it that way? Custom controllers somehow destroy the whole restify idea :/
@cedricziel That's the path we looked into at first because we thought it provided great features but later we realized we didn't like some of it and it would be much cleaner if we implement our own module that perfectly fits ultimate-seed
.
Related issues: https://github.com/pilwon/node-ultimate/pull/8, https://github.com/pilwon/node-ultimate/pull/13, https://github.com/pilwon/ultimate-seed/issues/42