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!
Is there another way to go about this? Pass the keys/values for $in and $nin in a different syntax? Or simply remove this test as using foo[]=bar will always return { foo:['bar'] }
Thanks for the PR, I opted for supporting both the nativ query string paster as well as the query string parser "qs" used by Express.js and Hapi.js through #7. This has landed in v1.2.0.
Is there another way to go about this? Pass the keys/values for $in and $nin in a different syntax? Or simply remove this test as using
foo[]=bar
will always return{ foo:['bar'] }