Nominal type for branding generated graphql mutation operation strings with input and output types.
E.g.,
export const createWidget = `...` as GeneratedMutation< CreateWidgetMutationVariables, CreateWidgetMutation>; Copy
export const createWidget = `...` as GeneratedMutation< CreateWidgetMutationVariables, CreateWidgetMutation>;
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 mutation operation strings with input and output types.
E.g.,
This allows
graphql()
to extractInputType
andOutputType
to correctly assign types to thevariables
and result objects.