Sanity Library Reference Docs
Preparing search index...
@sanity/migrate
create
Function create
create
<
Doc
extends
Optional
<
SanityDocument
,
"_id"
>
>
(
document
:
Doc
,
)
:
CreateMutation
<
Doc
>
Creates a new document.
Type Parameters
Doc
extends
Optional
<
SanityDocument
,
"_id"
>
Parameters
document
:
Doc
The document to be created.
Returns
CreateMutation
<
Doc
>
The mutation to create the document.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...
Creates a new document.