-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
remove/opt-out of qs
module
#2215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is about the |
yeah |
maybe do an option like |
OK, just checking :) |
really? i thought it was always a string. i thought |
no, even core is broken. |
It's also what like all the other languages like to do. |
ohhh. i guess i'd be down for a module like that, except it should have a convenience method to return an object. the object should probably return only strings as default and optionally do the nested/array/type inferencing magic |
Right. I can see the convenience method taking an option to return all values as strings only (so first value when there are multiple), all as arrays, or the mixed format. Then people will know if they asked for the mixed, they'll know what kind of checking they need to be doing or whatever. |
We should be providing a query string module but optionally allowing the user to bring their own (maybe via setting when creating the app or something) We can do what @jonathanong suggested or optionally think about var app = express({ qs: my_qs }); I know we haven't passed options to express like this before but maybe it could work. |
Right. I see many different things going on here:
We have setting stuff already with |
There is now a commit on the 4.7 branch that implements this. A user can opt-out of parsing with |
Updated the 5.x doc accordingly. |
looking through
qs
's issues, it seems like there isn't even a consensus on how nested query string parsing should be. we should either remove it, opt out of it, or create semantics everyone could agree on and redo theqs
moduleThe text was updated successfully, but these errors were encountered: