Skip to content

Request body generation is wrong when the parameter name is 'input' #233

@mohamedveron

Description

@mohamedveron

when creating a mutaion and tried to test it it always generate the request body with wrong object, after deep debugging I found that the issue was that i named the parameter with 'input' like that

    createAccount(input: $account){
        id,
        user{
            name,
        },
        amount
    }
} ```

when I changed it to another name it worked correctly:

``` mutation AccountConformationMutation($account: NewAccount!) {
    createAccount(account: $account){
        id,
        user{
            name,
        },
        amount
    }
} ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions