Nominal type for branding generated graphql query operation strings with input and output types.
E.g.,
export const getWidget = `...` as GeneratedQuery< GetWidgetQueryVariables, GetWidgetQuery>; Copy
export const getWidget = `...` as GeneratedQuery< GetWidgetQueryVariables, GetWidgetQuery>;
This allows graphql() to extract InputType and OutputType to correctly assign types to the variables and result objects.
graphql()
InputType
OutputType
variables
Nominal type for branding generated graphql query operation strings with input and output types.
E.g.,
This allows
graphql()
to extractInputType
andOutputType
to correctly assign types to thevariables
and result objects.