#
Interface: Mutate<GeneratedSchema>#
Type parametersName | Type |
---|---|
GeneratedSchema | object |
GeneratedSchema.mutation | object |
GeneratedSchema.query | object |
#
Callableâ–¸ Mutate<T>(fn
: (mutation
: GeneratedSchema[mutation]) => T, opts?
: { onComplete?
: (data
: T, helpers
: MutateHelpers<GeneratedSchema>) => void ; onError?
: (error
: gqlessError, helpers
: MutateHelpers<GeneratedSchema>) => void }): Promise<T>
#
Type parameters:Name | Default |
---|---|
T | any |
#
Parameters:Name | Type |
---|---|
fn | (mutation : GeneratedSchema[mutation]) => T |
opts? | object |
opts.onComplete? | (data : T, helpers : MutateHelpers<GeneratedSchema>) => void |
opts.onError? | (error : gqlessError, helpers : MutateHelpers<GeneratedSchema>) => void |
Returns: Promise<T>
Defined in: packages/gqless/src/Client/client.ts:139