This repository was archived by the owner on May 1, 2025. It is now read-only.
This repository was archived by the owner on May 1, 2025. It is now read-only.
Escaping operators #70
Open
Description
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 be the querystring for the following output:
{"foo":"!baz"}.
I've tried:
?foo=!baz => {"foo":{"$ne":"baz"}} (duh)
?foo=%21baz => {"foo":{"$ne":"baz"}} (ExpressJS resolves %21 before your lib sees it)
?foo=%27!baz%27 => {"foo":"'!baz'"} same problem, resolved by ExpressJS
But even without ExpressJS in between % escaping it doesn't seem to work.
P.S. Like another poster I would also like to combine the whole expression into one q=... parameter, otherwise it would cause conflicts with other meaningful parameters like page, limit etc.
Metadata
Metadata
Assignees
Labels
No labels