Skip to main content
Query

publications

Returns a project's publications, newest first. Requires read access to the project. Readers who are not members of the project's space see screenplay versions only when they were sent to them.

Arguments

  • afterString

    Returns the items after this cursor: the pageInfo.endCursor of the previous page. Omit to start at the beginning.

  • Only return publications of this document kind.

  • firstInt

    Maximum number of items to return, from 1 to 200. Defaults to 50.

  • projectIdID!

    ID of the project.

Returns

PublicationConnection!

Example

query Publications($after: String, $docKind: PublicationDocKind, $first: Int, $projectId: ID!) {
  publications(
    after: $after
    docKind: $docKind
    first: $first
    projectId: $projectId
  ) {
    totalCount
  }
}