Skip to content
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

Multiple Query Parameters with Same Name (i.e. array) #453

Open
matthewdickinson opened this issue Jan 24, 2022 · 0 comments
Open

Multiple Query Parameters with Same Name (i.e. array) #453

matthewdickinson opened this issue Jan 24, 2022 · 0 comments

Comments

@matthewdickinson
Copy link

Is there a built-in way to pass multiple values to the same parameter?

Many frameworks (e.g. https://stackoverflow.com/a/23181173) support a way to pass arrays of values via the query string (e.g. "?test=1&test=2" or "?test[]=1&test[]=2").

Is there away way to do this in Oak, or is the expectation that we'll parse parameters like this in our routing code (i.e. context.request.url.searchParams.get('test').split(',') ?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant