I have been trying to use the $inQuery clause to enable logged in users to only see items assigned to them.
I have used the following syntax in the where parameter:
{"User": {"$inQuery": {_id: "54aadf25e4b08ad5d6711fac" } } }
After testing the service and it returned the following
[
{
"id":"54aadde2e4b08ad5d6711fa9",
"Meal":"Bread",
"createdAt":"2015-01-05 18:54:26.559",
"updatedAt":"2015-01-06 10:35:46.373",
"User":{
"collName":"users",
"_id":"54aadf25e4b08ad5d6711fac"
}
}
]
which seems to be the correct thing.
Is there any mapping that i need to do for the query service. i.e. before send and for success.