OBJECT

DocumentVersion

A DocumentVersion is a version of a given Document.

link GraphQL Schema definition

  • type DocumentVersion implements Node {
  • # A globally unique identifier. Can be used in various places throughout the
  • # system to identify this single value.
  • id: ID!
  • rowId: UUID!
  • documentRowId: UUID!
  • version: VersionTime!
  • prevVersion: VersionTime
  • commitUserRowId: UUID!
  • commitReason: String!
  • addedFiles: [String]
  • removedFiles: [String]
  • modifiedFiles: [String]
  • # Reads a single `Document` that is related to this `DocumentVersion`.
  • documentByDocumentRowId: Document!
  • # Reads a single `User` that is related to this `DocumentVersion`.
  • userByCommitUserRowId: User!
  • # Reads and enables pagination through a set of `DocumentVersionFile`.
  • #
  • # Arguments
  • # first: Only read the first `n` values of the set.
  • # last: Only read the last `n` values of the set.
  • # offset: Skip the first `n` values from our `after` cursor, an
  • # alternative to cursor
  • # based pagination. May not be used with `last`.
  • # before: Read all values in the set before (above) this cursor.
  • # after: Read all values in the set after (below) this cursor.
  • # orderBy: The method to use when ordering `DocumentVersionFile`.
  • # condition: A condition to be used in determining which values
  • # should be returned by the collection.
  • documentVersionFilesByDocumentVersionRowId(
  • first: Int,
  • last: Int,
  • offset: Int,
  • before: Cursor,
  • after: Cursor,
  • orderBy: [DocumentVersionFilesOrderBy!],
  • condition: DocumentVersionFileCondition
  • ): DocumentVersionFilesConnection!
  • }