N1QL in Ottoman find() method

Hi, is it possible to use N1QL in the find method on a model so that for example I can find all users who are older then 20 or order all the results by the date of birth using something similar to “order by dob desc”?



Hey @f.reynolds,

Performing generic find queries are support through the .find() method on each model. An example query would be:

  age: {$gt: 20}
}, function(err, rows) {


P.S. Sorting is not currently supported, but it is on our roadmap.

Cheers, Brett