I am struggling to query on a json object inside an array of json objets, is this possible? if not any alternatives you would recommend?
availability : [{
date: date,
times: [{
start:timeAvail[timeStart],
end: timeAvail[timeEnd]
}]
}];
I want to query on date to get all objects with a certain date and get the array of all objects that match like [{date: x, time: [y]}] I've tried this but doesn't return:
Collection.find({availability: {$in: [{date: "2016/10/2"}]}}).fetch()