Sanity
Adding Shopstory field to a content type
Shopstory Sanity plugin provides a new field type shopstory
so adding Shopstory field is as simple as:
Built-in resource types
There are 3 built-in resource types for Sanity:
sanity.document
sanity.image
sanity.file
sanity.document
sanity.document
sanity.document
resource type can take 1 parameter:
documentType
(string[]
) - the list of allowed document types
Example:
Default fetch behaviour for sanity.document
is a GROQ call that fetches all field values without fetching deeper references.
sanity.image
sanity.image
sanity.file
sanity.file
Last updated