mutation<
TOutput
,TInput
>(output
,resolveOrOptions
):FieldOrOperation
<undefined
,SchemaToSilk
<GraphQLSilkIO
|YupSchemaIO
,TOutput
>,InputSchemaToSilk
<GraphQLSilkIO
|YupSchemaIO
,TInput
>,"mutation"
>
• TOutput extends GraphQLSilk
<any
, any
> | Schema
<any
, any
, any
, ""
>
• TInput extends InputSchema
<GraphQLSilk
<any
, any
> | Schema
<any
, any
, any
, ""
>> = undefined
• output: TOutput
• resolveOrOptions: QueryMutationOptions
<GraphQLSilkIO
| YupSchemaIO
, TOutput
, TInput
> | () => MayPromise
<"~standard"
extends keyof TOutput
? "types"
extends keyof NonNullable
<TOutput
[keyof ... & "~standard"
]> ? "output"
extends keyof NonNullable
<NonNullable
<...>[... & ...]> ? NonNullable
<NonNullable
<...>[... & ...]>[keyof NonNullable
<...> & "output"
] : never
: never
: never
| "__outputType"
extends keyof TOutput
? TOutput
[keyof TOutput
& "__outputType"
] : never
>
FieldOrOperation
<undefined
, SchemaToSilk
<GraphQLSilkIO
| YupSchemaIO
, TOutput
>, InputSchemaToSilk
<GraphQLSilkIO
| YupSchemaIO
, TInput
>, "mutation"
>
packages/yup/src/index.ts:383