Skip to content

How to reference response type #410

Open
@Ionaru

Description

@Ionaru

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions