toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-tanstack-query-core
/
tanstack.query.core
/
Mutation
Mutation
open
external
class
Mutation
<
TData
,
TError
,
TVariables
,
TContext
>
(
config
:
MutationConfig
<
TData
,
TError
,
TVariables
,
TContext
>
)
:
Removable
(
source
)
Members
Constructors
Mutation
Link copied to clipboard
constructor
(
config
:
MutationConfig
<
TData
,
TError
,
TVariables
,
TContext
>
)
Properties
gc
Time
Link copied to clipboard
open
var
gcTime
:
JsDuration
meta
Link copied to clipboard
open
var
meta
:
MutationMeta
?
mutation
Id
Link copied to clipboard
open
val
mutationId
:
Int
options
Link copied to clipboard
open
var
options
:
MutationOptions
<
TData
,
TError
,
TVariables
,
TContext
>
state
Link copied to clipboard
open
var
state
:
MutationState
<
TData
,
TError
,
TVariables
,
TContext
>
Functions
add
Observer
Link copied to clipboard
open
fun
addObserver
(
observer
:
MutationObserver
<
*
,
*
,
*
,
*
>
)
continue
Link copied to clipboard
open
fun
continue
(
)
:
Promise
<
*
>
destroy
Link copied to clipboard
open
fun
destroy
(
)
execute
Link copied to clipboard
open
fun
execute
(
variables
:
TVariables
)
:
Promise
<
TData
>
remove
Observer
Link copied to clipboard
open
fun
removeObserver
(
observer
:
MutationObserver
<
*
,
*
,
*
,
*
>
)
set
Options
Link copied to clipboard
open
fun
setOptions
(
options
:
MutationOptions
<
TData
,
TError
,
TVariables
,
TContext
>
)