Page 1 of 1

No response when querying a pointer using an array of ids

Posted: Sun Oct 12, 2014 9:42 pm
by adam griffin

At first I thought the Ids did not have any response until I tested with one Id and got a response.
code
{"Post_Pointer":
{"collName":"Post_Timeline", "_id": '538a4a57e4b0d8c87ceb6b1f'
}
}
/code
Image

So clearly it has a response, but when I try in an array there is no response
code
{"Post_Pointer":
{"collName":"Post_Timeline", "_id":
{"$in":['538a4a57e4b0d8c87ceb6b1f','53a9163ce4b09f5c7d4f25ae']
}
}
}
/code
Image


No response when querying a pointer using an array of ids

Posted: Mon Oct 13, 2014 9:47 am
by Kateryna Grynko

Hi Adam,

This is a bug unfortunately.
We are working on it.


No response when querying a pointer using an array of ids

Posted: Mon Oct 13, 2014 10:47 am
by Maryna Brodina

Hello Adam,

Sorry for misunderstanding, but it is not a bug.
Correct syntax would be like this:

pre{"ActionPointer": {"$in": ['538a4a57e4b0d8c87ceb6b1f','53a9163ce4b09f5c7d4f25ae']}}/pre


No response when querying a pointer using an array of ids

Posted: Mon Oct 13, 2014 2:26 pm
by adam griffin

I tried this way and it still shows no results
code{"Post_Pointer": {"$in": ['53d6db48e4b0d6ce211ab727','53a9163ce4b09f5c7d4f25ae']}}/code


No response when querying a pointer using an array of ids

Posted: Tue Oct 14, 2014 2:34 am
by Yurii Orishchuk

Hi Adam,

For your case you need to use "$inQuery" clause:
http://devcenter.appery.io/documentat...

Please use following "where":

pre

{"Post_Pointer": {"$inQuery": {_id: { "$in": ["53d6db48e4b0d6ce211ab727", "53a9163ce4b09f5c7d4f25ae"] } } }}

/pre

Regards.


No response when querying a pointer using an array of ids

Posted: Tue Oct 14, 2014 2:54 am
by adam griffin

Thank You!!!