Skip to content

SDK: naming convention transform camelCase not working for inputTypes #565

Closed
@durdenx

Description

@durdenx

When we use the new naming convention transform with the SDK to transform snake_case types in camelCase, renamed input fields are not well binded with their corresponding snake_case fields.

If we use:

transforms:
      - namingConvention:
          fieldNames: camelCase

the following query :

sdk.groupsQuery({ input: { perPage: 5 } });

return an error:

GraphQLError: Variable "$input" got invalid value { perPage: 1 }; Field "perPage" is not defined by type GroupsInput. Did you mean per_page or page?

if we use graphql-mesh serve it's working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions