Populating a list from the database and using a Where request

Again, it works in the tester but not in the datasource using the JS. I'm trying to populate a list from the database and only include rows where the poster column has a pointer matching their ID. AKA a list of that persons posts. It works in the database service tester but not when I translate it into a JSON object in JS. I'm using a sample string for example purposes, it will need to be a mapped local variable so that's why i need to use Js.

{"poster":{"collName":"_users","_id": "53ee21c6e4b003453214b26d"}}
%% works

return '{"poster":{"collName":"_users","_id": "53ee21c6e4b003453214b26d"}}';
%% doesn't work
1 person has
this problem
+1
This topic is no longer open for comments or replies.