Skip to main content

OvokClient.getCmsDocument

A published document of a CMS collection by slug, the shared tenant's when the tenant has none of its own. Signed out, it is read only with allowSignedOut and a tenantCode; otherwise it rejects with SignInRequiredError.

Kind: Class method
Package: @ovok/core

Import​

import { OvokClient } from '@ovok/core';

TypeScript signatures​

getCmsDocument(this: OvokClient, collection: string, slug: string, options?: OvokCmsOptions): Promise<T>
ParameterTypeDetails
collectionstring—
slugstring—
optionsOvokCmsOptions—

Returns: Promise<T>.

Class​

This method is available on OvokClient.

Learn the workflow​

Continue with Client Configuration for the workflow context and examples.

Source​

View the declaration in the SDK source.