Sanity Library Reference Docs
Preparing search index...
sanity
index
DocumentVersion
Interface DocumentVersion
Beta
Hidden
interface
DocumentVersion
{
commit
:
()
=>
void
;
consistency$
:
Observable
<
boolean
>
;
create
:
(
document
:
Partial
<
SanityDocument
>
)
=>
MutationPayload
;
createIfNotExists
:
(
document
:
SanityDocument
)
=>
MutationPayload
;
createOrReplace
:
(
document
:
SanityDocument
)
=>
MutationPayload
;
delete
:
()
=>
MutationPayload
;
events
:
Observable
<
DocumentVersionEvent
>
;
mutate
:
(
mutations
:
MutationPayload
[]
)
=>
void
;
patch
:
(
patches
:
any
[]
)
=>
MutationPayload
[]
;
remoteSnapshot$
:
Observable
<
RemoteSnapshotVersionEvent
>
;
}
Index
Properties
commit
consistency$
create
create
If
Not
Exists
create
Or
Replace
delete
events
mutate
patch
remote
Snapshot$
Properties
Beta
commit
commit
:
()
=>
void
Beta
consistency$
consistency$
:
Observable
<
boolean
>
Beta
create
create
:
(
document
:
Partial
<
SanityDocument
>
)
=>
MutationPayload
Beta
create
If
Not
Exists
createIfNotExists
:
(
document
:
SanityDocument
)
=>
MutationPayload
Beta
create
Or
Replace
createOrReplace
:
(
document
:
SanityDocument
)
=>
MutationPayload
Beta
delete
delete
:
()
=>
MutationPayload
Beta
events
events
:
Observable
<
DocumentVersionEvent
>
Beta
mutate
mutate
:
(
mutations
:
MutationPayload
[]
)
=>
void
Beta
patch
patch
:
(
patches
:
any
[]
)
=>
MutationPayload
[]
Beta
remote
Snapshot$
remoteSnapshot$
:
Observable
<
RemoteSnapshotVersionEvent
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
commit
consistency$
create
create
If
Not
Exists
create
Or
Replace
delete
events
mutate
patch
remote
Snapshot$
Sanity Library Reference Docs
Loading...
Hidden