Queries
document
Fetch a document by document and company id.
query Document($where: DocumentWhereInput!) {
document(where: $where) {
id
fileName
contentType
size
lastModifiedAt
downloadUrl
source
status
}
}input DocumentWhereInput {
companyId: CompanyId!
documentId: ID!
}Arguments
where DocumentWhereInput! non-null input
Type
Document object
Document
An object representing a document related to a company.
Response Fields
id ID! non-null scalar
ID!
Unique identifier for the document.
fileName String! non-null scalar
String!
The file name of the document.
contentType String scalar
String
The file's content type.
size Long scalar
Long
The file size, given in bytes.
lastModifiedAt ISODateTime scalar
ISODateTime
The date and time the document was last modified.
downloadUrl String scalar
String
The URL where the document can be downloaded.
source DocumentSource! non-null enum
DocumentSource!
The source of the document.
status DocumentStatus! non-null enum
DocumentStatus!
The status of the document upload.