Sanity App SDK
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
;
resource
?:
DocumentResource
;
source
?:
DocumentResource
;
}
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
resource?
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
resource
resource
?:
DocumentResource
Explicit resource object to use for this operation.
Optional
Beta
source
source
?:
DocumentResource
Deprecated
Use
resource
instead.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
dataset
params
perspective
project
Id
query
resource
source
Sanity App SDK
Loading...
Explicit resource object to use for this operation.