Sanity Library Reference Docs
Preparing search index...
next-sanity
index
SanityQueries
Interface SanityQueries
interface
SanityQueries
{
"*[_type == \"page\" && slug.current == $slug][0]{_id,_type,body,title}"
:
PageQueryResult
;
"*[_type==\"post\"][0]{title,imageLocation}"
:
{
_type
:
"post"
;
imageLocation
:
"left"
|
"right"
;
title
:
string
;
}
;
}
Index
Properties
*[_
type == "page" && slug.current == $slug][0]{_
id,_
type,body,title}
*[_
type=="post"][0]{title,image
Location}
Properties
*[_
type == "page" && slug.current == $slug][0]{_
id,_
type,body,title}
"*[_type == \"page\" && slug.current == $slug][0]{_id,_type,body,title}"
:
PageQueryResult
*[_
type=="post"][0]{title,image
Location}
"*[_type==\"post\"][0]{title,imageLocation}"
:
{
_type
:
"post"
;
imageLocation
:
"left"
|
"right"
;
title
:
string
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
*[_
type == "page" && slug.current == $slug][0]{_
id,_
type,body,title}
*[_
type=="post"][0]{title,image
Location}
Sanity Library Reference Docs
Loading...