SDK: naming convention transform camelCase not working for inputTypes
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.
@durdenx Could you share a reproduction on CodeSandbox or a GitHub repo?
@ardatan You can find a reproduction here: https://github.com/durdenx/graphql-mesh-json-schema
Available in https://github.com/Urigo/graphql-mesh/releases/tag/v0.2.11
I've upgraded to v2.11 and the problem is still there : https://github.com/durdenx/graphql-mesh-json-schema
It seems to be working fine since SDK is generated in a different way now. Let us know if the issue persists so we can reopen the issue.