Im using sails v 0.10.5 and latest sails-mysql
I have a Restaurant filtering system
Venue.find().populate(\'comments\', {
deleted: false
}).w
Venue.find().populate('comments', {
deleted: false
}).where({
restaurant_services: {
contains: '"delivery":1',
contains: '"takeout":1',
},
restaurant_specialties: {contains: '"breakfast":1'}
})
that you need
Venue.find({
where:{
restaurant_services: {
contains: '"delivery":1',
contains: '"takeout":1',
},
restaurant_specialties: {
contains: '"breakfast":"1"'
}
}
}).populate('comments', {
deleted: false
}).exec(console.log);