Sanity Library Reference Docs
Preparing search index...
@sanity/sdk
index
QueryOptions
Interface QueryOptions<TQuery, TDataset, TProjectId>
Beta
interface
QueryOptions
<
TQuery
extends
string
=
string
,
TDataset
extends
string
=
string
,
TProjectId
extends
string
=
string
,
>
{
dataset
?:
TDataset
;
params
?:
Record
<
string
,
unknown
>
;
perspective
?:
ReleasePerspective
|
ClientPerspective
;
projectId
?:
TProjectId
;
query
:
TQuery
;
source
?:
DocumentSource
;
}
Type Parameters
TQuery
extends
string
=
string
TDataset
extends
string
=
string
TProjectId
extends
string
=
string
Hierarchy (
View Summary
)
Pick
<
ResponseQueryOptions
,
"useCdn"
|
"cache"
|
"next"
|
"cacheMode"
|
"tag"
>
DatasetHandle
<
TDataset
,
TProjectId
>
QueryOptions
Index
Properties
dataset?
params?
perspective?
project
Id?
query
source?
Properties
Optional
Beta
dataset
dataset
?:
TDataset
Optional
Beta
params
params
?:
Record
<
string
,
unknown
>
Optional
Beta
perspective
perspective
?:
ReleasePerspective
|
ClientPerspective
Optional
Beta
project
Id
projectId
?:
TProjectId
Beta
query
query
:
TQuery
Optional
Beta
source
source
?:
DocumentSource
Explicit source object to use for this operation.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
dataset
params
perspective
project
Id
query
source
Sanity Library Reference Docs
Loading...
Explicit source object to use for this operation.