question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Support multiValueQueryStringParameters

See original GitHub issue

API Gateway gives multiValueQueryStringParameters to lambda when QueryParameters are multiple parameters.

However, mangum always passes queryStringParameters to query_string in ASGI’s scope.

I can create a PR if you want it to support multiple query parameters.

Related Links

https://aws.amazon.com/blogs/compute/support-for-multi-value-parameters-in-amazon-api-gateway/

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jordaneremieffcommented, Dec 29, 2019

@koxudaxi thanks for explaining! I wasn’t aware of how normal query strings would work with the new changes. If you could PR a test to the effect of your examples I would appreciate it.

0reactions
koxudaxicommented, Dec 29, 2019

@erm I put the event results. screenshot25

I show you some patterns as text.

?test=param1&test=param2

'queryStringParameters': {'test': 'param2'}, 'multiValueQueryStringParameters': {'test': ['param1', 'param2']}, 

?test=param1

 'queryStringParameters': {'test': 'param1'}, 'multiValueQueryStringParameters': {'test': ['param1']},

?test=

'queryStringParameters': {'test': ''}, 'multiValueQueryStringParameters': {'test': ['']},

Query parameter is nothing

 'queryStringParameters': None, 'multiValueQueryStringParameters': None, 
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] Support multiValueQueryStringParameters
I tested a lambda app with a single query parameter and multi-value query parameters. API Gateway always gives Event with queryStringParameters ...
Read more >
Support for multi-value parameters in Amazon API Gateway
The multiValueQueryStringParameters key is present in the input request regardless of whether the request contains keys with multiple values.
Read more >
API Gateway: Explaining Lambda Payload version 2.0 in ...
The blog described new features and changes including Lambda payload version 2.0 which would be used by default since GA.
Read more >
Define API GATEWAY list type parameter - Stack Overflow
After some logging seems that API GATEWAY parses same query keys as a list in event.multiValueQueryStringParameters. So ...
Read more >
Build a Hello World REST API with Lambda proxy integration
If this is your first time using API Gateway, you see a page that introduces you to the features of the service. Under...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found