Skip to content

DocumentDraft

A draft for editing a document

Fields

annotations · JSON! · required · Annotations for document edits in JSON format
document · Document! · required · The document being edited
id · ID! · required · The unique identifier of the document draft
lock_version · Int! · required · The current lock version
locked · Boolean · Whether the draft has an active lock
original_document · Document! · required · The original document copied for editing
published · Boolean · Whether the draft has been published
published_at · ISO8601DateTime · When the document draft was published
status · DocumentDraftStatusTypeEnum! · required · Enum status of draft or published
unlock_at · ISO8601DateTime · When the current version lock expires

Used By

Definition

"""
A draft for editing a document
"""
type DocumentDraft {
"""
Annotations for document edits in JSON format
"""
annotations: JSON!
"""
The document being edited
"""
document: Document!
"""
The unique identifier of the document draft
"""
id: ID!
"""
The current lock version
"""
lock_version: Int!
"""
Whether the draft has an active lock
"""
locked: Boolean
"""
The original document copied for editing
"""
original_document: Document!
"""
Whether the draft has been published
"""
published: Boolean
"""
When the document draft was published
"""
published_at: ISO8601DateTime
"""
Enum status of draft or published
"""
status: DocumentDraftStatusTypeEnum!
"""
When the current version lock expires
"""
unlock_at: ISO8601DateTime
}