We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the config like
./src/: preset: near-operation-file presetConfig: extension: .generated.ts baseTypesPath: types.ts plugins: - typescript-operations - graphql-codegen-factories/operations
When a selection references an array, the factory returns a single element.
When the
query { allStrapiRecipe { edges { # this is an array node { ...fields } } } }
Expected
{ allStrapiRecipe: { __typename: 'StrapiRecipeConnection', edges: [{ __typename: 'StrapiRecipeEdge', node: { __typename: 'StrapiRecipe', }, }] }, }
Actual
{ allStrapiRecipe: { __typename: 'StrapiRecipeConnection', edges: { __typename: 'StrapiRecipeEdge', node: { __typename: 'StrapiRecipe', }, }, } }
Tested with yummy-recipes/yummy#58
The text was updated successfully, but these errors were encountered:
Thanks for the report, it's fixed in graphql-codegen-factories@1.0.0-beta.2
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Using the config like
When a selection references an array, the factory returns a single element.
When the
Expected
Actual
Tested with yummy-recipes/yummy#58
The text was updated successfully, but these errors were encountered: