Hi!
This thing was to hard to search for so I just have to post this question.
I have a Query to my database with the following code who works perfectly:
codevar createdByID = gets value from localStorage...
return '{"$and": [{"createdByID":"'+currentIDMe+'"},{"sentToID":"'+value+'"}]}';/code
But I want it to do this:
codereturn '{"$and": [{"createdByID":"'+currentIDMe+'"},{"sentToID":"'+value+'"}]}'/code
OR
code'{"$and": [{"createdByID":"'+sentToID+'"},{"currentIDMe":"'+value+'"}]}';/code
So I want it do be like: code$or [{first line above},{second line above}];/code
I tried different ways my self but didn't make it.
Could someone give me the code for have to make that work?