Drive types
Type definitions referenced by Drive queries and mutations.
Boolean
Section titled “Boolean”Scalar. The Boolean scalar type represents true or false.
CreateFolderInput
Section titled “CreateFolderInput”Input object.
| Field | Type | Description |
|---|---|---|
parentId |
Int |
— |
name |
String! |
— |
CreateManagedUploadInput
Section titled “CreateManagedUploadInput”Input object.
| Field | Type | Description |
|---|---|---|
managedKey |
String! |
Must match the authenticated service token’s service claim. |
reference |
String! |
Opaque source-service resource identifier, such as a workbook UUID. |
revision |
Int! |
— |
name |
String! |
— |
mimeType |
String |
— |
sizeBytes |
Float |
— |
replaceNodeId |
Int |
Replace the content of an existing managed artifact node. |
expiresAt |
String |
— |
public |
Boolean |
Serve the artifact anonymously at its stable hard-to-guess /o/{token} URL. |
browserUpload |
Boolean |
Presign the upload PUT for a browser (public storage endpoint) instead of the in-network endpoint. Set when an end user’s browser performs the PUT. |
CreateUploadInput
Section titled “CreateUploadInput”Input object.
| Field | Type | Description |
|---|---|---|
parentId |
Int |
Destination folder (null = My Drive root). Ignored when replacing. |
name |
String! |
— |
mimeType |
String |
— |
sizeBytes |
Float |
— |
replaceNodeId |
Int |
Replace an existing file’s content (previous content becomes a version). |
DownloadLink
Section titled “DownloadLink”Object.
| Field | Type | Description |
|---|---|---|
url |
String! |
— |
expiresAt |
String! |
— |
DriveOverview
Section titled “DriveOverview”Object.
| Field | Type | Description |
|---|---|---|
filesCount |
Int! |
— |
foldersCount |
Int! |
— |
storageUsedBytes |
Float! |
— |
orgStorageUsedBytes |
Float! |
— |
trashCount |
Int! |
— |
FileVersion
Section titled “FileVersion”Object.
| Field | Type | Description |
|---|---|---|
id |
Int! |
— |
nodeId |
Int! |
— |
version |
Int! |
— |
sizeBytes |
Float! |
— |
checksum |
String |
— |
mimeType |
String |
— |
createdBy |
String! |
— |
createdAt |
String! |
— |
Scalar. The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.
Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Scalar.
ManagedDownloadLink
Section titled “ManagedDownloadLink”Object.
| Field | Type | Description |
|---|---|---|
url |
String! |
— |
expiresAt |
String! |
— |
mimeType |
String! |
— |
sizeBytes |
Float! |
— |
checksum |
String |
— |
managedRevision |
Int! |
— |
Object.
| Field | Type | Description |
|---|---|---|
id |
Int! |
— |
type |
String! |
folder | file |
name |
String! |
— |
parentId |
Int |
— |
status |
String! |
active | uploading |
mimeType |
String |
— |
sizeBytes |
Float! |
— |
checksum |
String |
ETag of the current object in the bucket. |
visibility |
String! |
private | public |
publicUrl |
String |
Stable anonymous URL when public (files: /o/…, folders: /p/… prefix). |
cacheControl |
String |
Serving Cache-Control header (null = service default). |
contentDisposition |
String |
inline | attachment (null = inline). |
metadata |
JSON |
Custom key/value metadata, served as x-drive-meta-* headers. |
version |
Int! |
— |
managed |
Boolean! |
True for a permanent managed root or one of its managed descendants. |
managedKey |
String |
Stable system key on a managed root, such as sheets. |
managedAudience |
String |
Service audience that exclusively manages this node. |
managedReference |
String |
Opaque source-service resource identifier. |
managedRevision |
Int |
Source-service revision represented by this artifact. |
expiresAt |
String |
Retention deadline for temporary managed artifacts. |
starred |
Boolean! |
— |
trashedAt |
String |
— |
ownerId |
String! |
— |
isOwner |
Boolean! |
— |
accessRole |
String |
Caller’s effective role: owner | editor | viewer. |
shares |
[ShareGrant!]! |
Share grants — populated for owners/admins only. |
createdAt |
String! |
— |
updatedAt |
String! |
— |
NodeConnection
Section titled “NodeConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[NodeEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
NodeEdge
Section titled “NodeEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Node! |
— |
NodeFilter
Section titled “NodeFilter”Input object.
| Field | Type | Description |
|---|---|---|
parentId |
Int |
— |
rootOnly |
Boolean |
— |
sharedWithMe |
Boolean |
— |
starred |
Boolean |
— |
recent |
Boolean |
— |
trashed |
Boolean |
— |
search |
String |
— |
type |
String |
folder | file |
visibility |
String |
private | public |
ObjectSettingsInput
Section titled “ObjectSettingsInput”Input object.
| Field | Type | Description |
|---|---|---|
mimeType |
String |
— |
cacheControl |
String |
— |
contentDisposition |
String |
inline | attachment |
metadata |
JSON |
— |
PageInfo
Section titled “PageInfo”Object.
| Field | Type | Description |
|---|---|---|
hasNextPage |
Boolean! |
— |
hasPreviousPage |
Boolean! |
— |
startCursor |
String |
— |
endCursor |
String |
— |
ServiceHealth
Section titled “ServiceHealth”Object.
| Field | Type | Description |
|---|---|---|
status |
String! |
— |
service |
String! |
— |
timestamp |
String! |
— |
ShareGrant
Section titled “ShareGrant”Object.
| Field | Type | Description |
|---|---|---|
id |
Int! |
— |
nodeId |
Int! |
— |
granteeId |
String |
— |
granteeEmail |
String |
— |
orgWide |
Boolean! |
True when the grant applies to everyone in the organization. |
role |
String! |
viewer | editor |
createdAt |
String! |
— |
ShareInput
Section titled “ShareInput”Input object.
| Field | Type | Description |
|---|---|---|
email |
String |
Email of a user in your organization (omit when orgWide). |
orgWide |
Boolean |
Share with everyone in the organization. |
role |
String! |
viewer | editor |
SortInput
Section titled “SortInput”Input object.
| Field | Type | Description |
|---|---|---|
field |
String! |
name | sizeBytes | createdAt | updatedAt |
direction |
String! |
ASC | DESC |
String
Section titled “String”Scalar. The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
UploadTicket
Section titled “UploadTicket”Object.
| Field | Type | Description |
|---|---|---|
node |
Node! |
— |
uploadUrl |
String! |
Presigned PUT URL — upload the raw file body directly to the bucket. |
headers |
JSON! |
Headers the client must send with the PUT (Content-Type). |