node-mongo-querystring
node-mongo-querystring copied to clipboard
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, ge...
Hi there, First off: great work. We've bumped into a bit of an issue when trying to pass long hexadecimal strings. When passing these, `mongo-querystring` will coerce this into a...
Following from #67, this creates an option (`date.toString`) to use JavaScript date objects in queries rather than ISO strings. I didn't add test coverage for the option against all date...
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
The following test will fail, since it totally disallow the `non-string` values (stated in `test.js` line 520) ``` it('return boolean as boolean', () => { query = mqs.parse({ foo: true,...
https://github.com/Turistforeningen/node-mongo-querystring/blob/9e3554c2b1ea09a0845ae0526647ca5da21d33d4/index.js#L184 - should be `this.valRegex` not `this.valReqex` - but then this will replace all valid characters with '', instead of invalid chars - and is also overwritten for `^` and...
Hello, thank you very much for this plugin, it has facilitated me a lot of the searches of my web application. For me everything works very well, except in the...
Adds support for querying within a polygon. String format is as follows: `?within=1,1,2,2,2,3,1,2,1,1` Thanks to @MadisonBlake for the logic, I just integrated it into the module 👍 ### Todo *...
Hi, I'm new to programming, and I still can not find the solution to the next problem of accent searches, they could help me or give me an orientation. Thank...
`qs.parse({"foo":">1"})` results in` {"foo":{"$gt":1}}` and not` {"foo":{"$gt":"1"}}` where the '1' is converted to a Number field automatically. If the foo field is a string field in the database than this...
Hi, I've been playing a little with your lib but I found no way of escaping operators that occur in the first part of the values. For example, what would...