Skip to main content

Document

Represents a document attachment.

type Document {
id: ID!
createdAt: DateTime!
updatedAt: DateTime!
tenant: Tenant!
file: String!
name: String!
description: String!
fileExtension: String!
fileContentType: String
fileSize: FileSize
filename: String
url: String
contentType: String
}

Fields​

Document.id ● ID! non-null scalar​

The ID of the object

Document.createdAt ● DateTime! non-null scalar​

Date and time when the document was created.

Document.updatedAt ● DateTime! non-null scalar​

Date and time when the document was last updated.

Document.tenant ● Tenant! non-null object​

The tenant that owns this document.

Document.file ● String! non-null scalar​

The file field.

Document.name ● String! non-null scalar​

Name of the document.

Document.description ● String! non-null scalar​

Description of the document.

Document.fileExtension ● String! non-null scalar​

File extension.

Document.fileContentType ● String scalar​

MIME content type of the file.

Document.fileSize ● FileSize object​

File size in bytes.

Document.filename ● String scalar​

Original filename

Document.url ● String scalar​

URL to download the document

Document.contentType ● String scalar​

MIME type of the document

Member Of​

DocumentAdd object ● DocumentAttach object ● DocumentRemove object ● DocumentUpdate object ● Product object ● ProductVariant object ● Seller object ● User object

Was this page helpful?