Skip to main content

Document

A document that is associated with a datasource

type Document {
id: ID!
name: String!
originalUrl: String
contentType: String!
isPriority: Boolean!
isDownloadable: Boolean!
downloadUrl: String
updatedAt: DateTime!
status: DocumentStatus!
}

Fields

Document.id ● ID! non-null scalar

The ID of the document

Document.name ● String! non-null scalar

The name of the document

Document.originalUrl ● String scalar

The original url of document, if any

Document.contentType ● String! non-null scalar

The content (MIME) type of the document

Document.isPriority ● Boolean! non-null scalar

Whether the document is prioritized

Document.isDownloadable ● Boolean! non-null scalar

Whether the document can be downloaded

Document.downloadUrl ● String scalar

A temporary URL to download the document, if any

Document.updatedAt ● DateTime! non-null scalar

The last time this document was updated

Document.status ● DocumentStatus! non-null enum

The current processing status of the document

Returned By

document query ● updateDocument mutation

Member Of

CreateDocumentResult object