You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to have a middleware that takes care to normalize the event in this case and make sure we always have those key (mapped to an empty object) so that we don't need to have ternary conditions or a bunch of if statements every time we want to access one of those values in the collection.
The text was updated successfully, but these errors were encountered:
A common issue with Api gateway proxy event is that the keys:
pathParameters
andqueryStringParameters
are created in the event if (and only if) at least one parameter exists.this will lead to have to do the following tedious checks in the code:
I'd love to have a middleware that takes care to normalize the event in this case and make sure we always have those key (mapped to an empty object) so that we don't need to have ternary conditions or a bunch of if statements every time we want to access one of those values in the collection.
The text was updated successfully, but these errors were encountered: