Skip to main content
Query

publicationDocument

Returns the document a publication is a revision of, with its current version, whichever revision id names. Use it to open a publication: a link to an out-of-date revision then shows the current one. Null when the publication does not exist, is not visible to you, or its document has no released revision yet (a screenplay only saved as drafts or backups).

Arguments

  • idID!

    ID of any revision of the document.

  • projectIdID!

    ID of the project.

Returns

PublicationDocument

Example

query PublicationDocument($id: ID!, $projectId: ID!) {
  publicationDocument(id: $id, projectId: $projectId) {
    dayDate
    dayIndex
    dayTitle
    docKind
    id
    revisionCount
    scopeKey
    screenplayTitle
  }
}