How to query Pointer column using server code ?

When i run the below query, I don't any records but i do a row in database.
ContestId is the Pointer column in contestInfo table.

var collectionName = "ContestInfo";
var userName = request.get("userName");
var userPass = request.get("password");

try{
var result = {};

var params = {};
params.criteria = {
"ContestId": {
"$eq": "5b9cf90e2e22d753d6d4a9bf"
}
};

var token = DatabaseUser.login(dbId, userName, userPass).sessionToken;

result = Collection.query(dbId, collectionName, params,token);
response.success(result, "application/json");

}catch(ex){
response.success("message: " + ex.message + "ncode: " + ex.code);
}
1 person has
this question
+1
Reply