sails.js - WaterlineJS/SailsJS: Query "contains" array -
how accomplish multiple value inside query 'contains' ? eg.
{ name: { contains: [ 'west', 'lob' ] }, address : { contains: 'york' } }
having checked on via gitter channel need do...
if wanna use contains need use like! if want straight match use normal query.
model.query("select whatever mytable somefielding '%thevalue%'", function(error, myrows) { // stuff });
http://sailsjs.org/documentation/reference/waterline-orm/models/query
Comments
Post a Comment