method
RiduClient.preview
Read preview data using a scoped token.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
token | string | The token value. |
options | RequestOptions | | The options value. |
Returns
The declared result.
Promise<OutputFor<Config, Slug>>Full signature
RiduClient.preview<Slug extends DraftCollectionSlug<Config>>(
collection: Slug,
id: string,
token: string,
options?: RequestOptions,
): Promise<OutputFor<Config, Slug>>Related types
DraftCollectionSlugCollection slugs with the generated drafts capability.
RequestOptionsOptions shared by every request.
OutputForResolve a collection document output type.