Hi,
i'm trying to use Collection.query in Server Code but the results do not seem to be valid JSON.
I get an error on:
var result = Collection.query(dbId,
collectionNameA, queryStringA, tokenID);
console.log(result);
var obj = JSON.parse(result);
[SyntaxError: Unexpected token o]
if I copy paste from Trace to JSONLint, it says:
Parse error on line 1:
{ _id: '55770da3e4b0ce
-----^
Expecting 'STRING', '}'