query

Zaid Abdulla zaid at genieacs.com
Mon Apr 27 16:43:47 EDT 2015


On Mon, Apr 27, 2015, at 11:41 AM, Dave whoohoo wrote:
> Hey,
> 
> I am still trying to use the "and" and "or" operators to query for tasks. I read the mongodb page about this and created a query using that. However, I keep getting a 500 internal server error.
> 
> This is my uri unescaped query:
> 
> ?query={$or:[{"_id":"553df322d618e78644506f81"},{"_id":"5538b58df2bc6caa1c23d90b"}]}
> 
> Why is this not working? Or am I misunderstanding the syntax? 

You need to quote the $or operator because without the quotes it's
invalid JSON.

Zaid


More information about the Users mailing list