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

toBoolean and toNumber change. #63

Closed lucaskenda closed 7 years ago

lucaskenda commented 7 years ago

I tried to use: var qs = new MongoQS({ string: { toNumber: false } });

But toNumber and toBoolean is always in true. I propose a change so firstly it checks if it is boolean and then makes the change.

Thanks for this great module! :)

Starefossen commented 7 years ago

Thansk a lot @lucaskenda 💯 I have added you a as collaborator for mongo-querystring 😄