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
I'm generating queries based on this graphql scheme:
type Query { animals: [AnimalResult]! } union AnimalResult = Dog | Cat type Dog { example: [Something!]! } type Cat { example: [Something!]! } type Something { id: ID! }
I would expect that a animals.gql would be generated:
animals.gql
query animals{ animals{ ... on Dog { example{ id } } ... on Cat { example{ id } } } }
But I obtain this:
query animals{ animals{ ... on Dog { example{ id } } ... on Cat { } } }
As you can see id field in Cat is not included.
Cat
Is this a bug? I would like to fix this, I think it could be something about this loop: https://github.com/timqian/gql-generator/blob/master/index.js#L140
The text was updated successfully, but these errors were encountered:
fix #44
Sorry, something went wrong.
No branches or pull requests
I'm generating queries based on this graphql scheme:
I would expect that a
animals.gql
would be generated:But I obtain this:
As you can see id field in
Cat
is not included.Is this a bug? I would like to fix this, I think it could be something about this loop:
https://github.com/timqian/gql-generator/blob/master/index.js#L140
The text was updated successfully, but these errors were encountered: