Page 1 of 1

javascript or query using $or

Posted: Mon May 18, 2015 1:53 pm
by Vinny B

I have a database in my column called route its a number column

I need to have the where query search for numbers that is 1 or 3 only.

Can you please help me I have tried all of these

//return '{"route":"'+value+'"}';

//return '{"$or":"{"route": "3"},{"username": "a href="mailto:vinny2010b@gmail.com" rel="nofollow"vinny2010b@gmail.com/a"}}';

//return {"route": {"$in": [1,3]}};

//a = {"route": {"$in": [1,3]}};
//return a;


javascript or query using $or

Posted: Mon May 18, 2015 4:37 pm
by Serhii Kulibaba

Hello Vinny,

Please follow documentation below: https://devcenter.appery.io/documenta...


javascript or query using $or

Posted: Tue May 19, 2015 1:57 pm
by Vinny B

Thanks but it does not show how to implement using javascript. Can you please explain in more detail.

I have a colum in my database with number 1,2,3,4

I need query it and the results to show rows that have a

1 and 4
or
2 and 4
or
3 and 4.

Thank you


javascript or query using $or

Posted: Tue May 19, 2015 4:24 pm
by Vinny B

I thought this was it

return {"route": {"$in": [1,3]}};


javascript or query using $or

Posted: Tue May 19, 2015 5:27 pm
by Vinny B

never mind I was query a number column and just changed it to a string.

Thanks