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
For the given GQL schema:
type ItemA { valueA: String } type ItemB { valueB: String } union Item = ItemA | ItemB type Container { name: String items: [Item] } type Query { container(id: ID!): Container }
and following query:
fragment ItemAFragment on ItemA { valueA } fragment ItemBFragment on ItemB { valueB } fragment ItemFragment on Item { ... on ItemA { ...ItemAFragment } ... on ItemB { ...ItemBFragment } } fragment ContainerFragment on Container { name items { ...ItemFragment } } query getContainer($id: ID!) { container(id: $id) { ...ContainerFragment } }
the generated client contains the following get_container method:
get_container
... async def get_container(self, id: str) -> GetContainer: query = gql( """ query getContainer($id: ID!) { container(id: $id) { ...ContainerFragment } } fragment ContainerFragment on Container { name items { ...ItemFragment } } fragment ItemFragment on Item { ... on ItemA { ...ItemAFragment } ... on ItemB { ...ItemBFragment } } """ ) ...
Operation string is missing ItemAFragment and ItemBFragment definitions, even though they are used in ItemFragment.
ItemAFragment
ItemBFragment
ItemFragment
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
For the given GQL schema:
and following query:
the generated client contains the following
get_container
method:Operation string is missing
ItemAFragment
andItemBFragment
definitions, even though they are used inItemFragment
.The text was updated successfully, but these errors were encountered: