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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -