Using the output of the graphql-zeus --typedDocumentNode generator, how do I reference the response type of a query or mutation?
Using this query from the documentation:
const myMutation = typedGql('mutation')({
cardById: [{ cardId: $('cardId', 'String!') }, { name: true }],
});
What helpers or types do I need to use to get the output {name: string} so I can use that in props, inputs and other parts of the code?
Pretty much a duplicate of #204 but instead for the --typedDocumentNode output.
Using the output of the
graphql-zeus --typedDocumentNodegenerator, how do I reference the response type of a query or mutation?Using this query from the documentation:
What helpers or types do I need to use to get the output
{name: string}so I can use that in props, inputs and other parts of the code?Pretty much a duplicate of #204 but instead for the
--typedDocumentNodeoutput.