Turistforeningen / node-mongo-querystring

Query builder for accepting URL query parameters into your MongoDB queries. Safe and feature rich. Supports most of MongoDB's query operators such as $eq, $gt, $lt, $ne, $in, $nin, $exists, $regex, geospatial queries such as bbox and near, as well as your own custom query business logic!
MIT License
100 stars 31 forks source link

Can't make OR query for multiple parameters #73

Open pradip61993 opened 7 years ago

pradip61993 commented 7 years ago

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

Starefossen commented 7 years ago

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

ruslanguns commented 4 years ago

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

Starefossen commented 4 years ago

Unfortunately no.

krasimir commented 1 year ago

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