Function to create a GraphQL mutation.
• TSchemaIO extends AbstractSchemaIO
MutationFactory<
TOutput
,TInput
>(output
,resolveOrOptions
):FieldOrOperation
<undefined
,SchemaToSilk
<TSchemaIO
,TOutput
>,InputSchemaToSilk
<TSchemaIO
,TInput
>,"mutation"
>
Function to create a GraphQL mutation.
• TOutput extends object
• TInput extends undefined
| object
| Record
<string
, TSchemaIO
[0
]> = undefined
• output: TOutput
• resolveOrOptions: QueryMutationOptions
<TSchemaIO
, TOutput
, TInput
> | () => MayPromise
<InferPropertyType
<TOutput
, TSchemaIO
[2
]>>
FieldOrOperation
<undefined
, SchemaToSilk
<TSchemaIO
, TOutput
>, InputSchemaToSilk
<TSchemaIO
, TInput
>, "mutation"
>
packages/core/src/resolver/types.ts:191