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

'[]' stripped from key names, array Regex fails, breaking $in & $nin #6

Closed brianjd closed 8 years ago

brianjd commented 8 years ago

As the title states, currently with in an Express environment (using qs as a query parser), the trailing brackets are being stripped from the key names. This causes the regex to fail, as it is looking for foo[] and receiving foo instead. So both $in and $nin are currently broken.

Starefossen commented 8 years ago

Thanks for the heads up @brianjd, really appreciate it!

I have added support for both qs and the native querystring parser in #7.