node-mongo-querystring icon indicating copy to clipboard operation
node-mongo-querystring copied to clipboard

Can't make OR query for multiple parameters

Open pradip61993 opened this issue 8 years ago • 4 comments

Var object=[{id1:1,id2:3},{id1:4,id2:8}]

Collection name is 'logindata' Query: ?id1=1 OR id2:9

So I get one record : {id1:1,id2:3}

Please help me out

Thanks

pradip61993 avatar Sep 09 '17 05:09 pradip61993

OR operations is not supported by this library. I created an experimental branch that aimed to support OR queries but it was never completed.

Starefossen avatar Sep 09 '17 17:09 Starefossen

@Starefossen did you have any luck at $or operator? I really need it !

ruslanguns avatar Oct 31 '19 22:10 ruslanguns

Unfortunately no.

Starefossen avatar Feb 04 '20 05:02 Starefossen

Probably late to the party but I did this lib as an alternative https://github.com/krasimir/q2m

krasimir avatar Jun 05 '23 20:06 krasimir