document

Get one document by ID or type and slug. If versionId is present it returns the content of that version. If versionId is not present but withLatestPublishedVersion is false, it returns the content of the latest version which can be Draft, Timed or Published

document(id: IDslug: StringcontentType: DocumentContentTypeEnumversionId: IDwithLatestPublishedVersion: Boolean = truepredicate: PredicateInput): DocumentInterface

Type

DocumentInterface

Arguments

id: ID
The id of the document
slug: String
The slug of the document
contentType: DocumentContentTypeEnum
The content type of the document
versionId: ID
The version id of the document
withLatestPublishedVersion: Boolean = true
predicate: PredicateInput
Filtering