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

Updated README, regex fix #5

Closed brianjd closed 8 years ago

brianjd commented 8 years ago
assert.deepEqual(qs.parse({
   'foo': []
}), {});

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'] }

Starefossen commented 8 years ago

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.