Skip to content

crelte / queries / QueryOptions

Type Alias: QueryOptions ​

ts
type QueryOptions = object;

Options to configure the request

If you use Crelte*.query the following options will be set automatically:

  • path
  • route
  • previewToken
  • siteToken

Properties ​

bearerToken? ​

ts
optional bearerToken?: string;

A GraphQl Token generated in Craft


caching? ​

ts
optional caching?: boolean;

Configure Crelte's local query caching.

Default ​

ts
true

craftCaching? ​

ts
optional craftCaching?: boolean;

Allow Craft's configured GraphQL caching. Set false to bypass it. Does not affect Crelte's caching.

Default ​

ts
true

previewToken? ​

ts
optional previewToken?: string;

Usually automatically set


siteToken? ​

ts
optional siteToken?: string;

Usually automatically set