Closed
Description
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.