Skip to content

queryStringParameters object structure differs from deployment environment #54

Closed
@Neo-Oli

Description

@Neo-Oli

We have a request that looks something like this:

?filter[0][field]=title&filter[0][value]=TestElement&filter[1][field]=category&filter[1][value]=CategoryName

And in the development environment's lambda function the event.queryStringParameters, will be a nested object/array construct like this:

{
    "filter": [
        {
            "field": "title",
            "value": "TestElement"
        },
        {
            "field": "category",
            "value": "CategoryName"
        }
    ]
}

But in our deployment environment it will be a flat object like this:

{
    "filter[0][field]" : "title",
    "filter[0][value]" : "TestElement",
    "filter[1][field]" : "category",
    "filter[1][value]" : "CategoryName"
}

It should be the same in both environments.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions