$eq invalid operator
I am creating a server side API call with the following code:
code
var params = {}; //Define parameters object
params.criteria = { //Query criteria:
'objectId': {
"$eq": myObjId
}
};
//Define other parameters
params.limit = 1; //only get the latest record for this truck
params.sort = "_createdAt" //Ascending sort by creation date/time
console.log('about to call Query');
var queryResult = Collection.query(DB_id, "someTable", params, sessionToken);
/code
When I run this I get an error saying that $eq is not a valid operator. SHoudl I be using $in instead? Or perhaps there is another method that I am looking at to do this look up?