Skip to content
gist.link ↗

Sheets types

Type definitions referenced by Sheets queries and mutations.

Input object.

Field Type Description
worksheetId String! —
startColumn Int —
rows [[CellInput!]!]! —
expectedRevision Int —
clientInstanceId String! —
clientMutationId String! —

Input object.

Field Type Description
workbookId String! —
commands [JSON!]! —
expectedRevision Int —
clientInstanceId String! —
clientMutationId String! —

Scalar. The Boolean scalar type represents true or false.

Object.

Field Type Description
id String! —
title String! —
updatedAt String! —
worksheets [CampaignsCatalogWorksheet!]! —

Object.

Field Type Description
id String! —
title String! —
dataRowCount Int! Number of data rows below the header row.

Object.

Field Type Description
index Int! —
label String! —
suggestedRole String Auto-detected role: email, first_name, or last_name.

Object.

Field Type Description
worksheetId String! —
workbookTitle String! —
worksheetTitle String! —
totalDataRows Int! —
columns [CampaignsPreviewColumn!]! —
rows [[String]!]! Sample data rows (stringified calculated values), one entry per column.

Object.

Field Type Description
row Int! —
column Int! —
a1 String! —
value JSON —
formula String —
style JSON! —
updatedAt String! —

Input object.

Field Type Description
value JSON —
formula String —
style JSON —

Object.

Field Type Description
worksheetId String! —
rowStart Int! —
columnStart Int! —
rowEnd Int! —
columnEnd Int! —
revision Int! —
cells [Cell!]! —

Input object.

Field Type Description
worksheetId String! —
rowStart Int! —
columnStart Int! —
rowEnd Int! —
columnEnd Int! —
expectedRevision Int —
clientInstanceId String! —
clientMutationId String! —

Input object.

Field Type Description
title String! —
description String —
locale String —
timezone String —

Input object.

Field Type Description
workbookId String! —
title String —
expectedRevision Int —

Input object.

Field Type Description
worksheetId String! —
rowStart Int! —
rowCount Int! —
expectedRevision Int —
clientInstanceId String! —
clientMutationId String! —

Object.

Field Type Description
success Boolean! —
workbookId String! —
worksheetId String! —
revision Int! —
idempotentReplay Boolean! —
startRow Int —
startColumn Int —
endRow Int —
endColumn Int —
appendedRowCount Int —
deletedRowCount Int —
removed Int —

Input object. Imports an external spreadsheet (Excel .xlsx/.xls/.xlsm, OpenDocument .ods, CSV/TSV) into a new native workbook. Content is the base64-encoded file.

Field Type Description
filename String! Source filename; the extension selects the parser.
title String Workbook title; defaults to the filename without its extension.
contentBase64 String! —
driveNodeId Int Drive node the content came from; reopening the same node returns the existing workbook.

Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Scalar.

Object.

Field Type Description
hasNextPage Boolean! —
hasPreviousPage Boolean! —
startCursor String —
endCursor String —

Object.

Field Type Description
id String! —
column Int! —
role String! —

Input object.

Field Type Description
id String! —
column Int! —
role String! —

Object.

Field Type Description
id String! —
workbookId String! —
worksheetId String! —
targetAudience String! —
startRow Int! —
endRow Int! —
startColumn Int! —
endColumn Int! —
columns [PublishedColumn!]! —
sourceRevision Int! —
createdAt String! —
expiresAt String —
revokedAt String —
active Boolean! —

Object.

Field Type Description
sourceRow Int! —
values JSON! —

Object.

Field Type Description
snapshotId String! —
sourceRevision Int! —
schema JSON! —
edges [PublishedRangeRowEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node PublishedRangeRow! —

Object.

Field Type Description
id String! —
grantId String! —
sourceRevision Int! —
schema JSON! —
rowCount Int! —
createdAt String! —

Input object.

Field Type Description
workbookId String! —
worksheetId String! —
startRow Int! —
endRow Int! —
startColumn Int! —
endColumn Int! —
columns [PublishedColumnInput!]! —
expiresAt String —

Object.

Field Type Description
items [SpreadsheetRow!]! —
startRow Int! —
endRow Int! —
hasNextPage Boolean! —
revision Int! —

Object.

Field Type Description
status String! —
service String! —
timestamp String! —

Input object.

Field Type Description
ownerId String! —
worksheetId String! —
emailColumn Int! —
firstNameColumn Int —
lastNameColumn Int —

Object.

Field Type Description
workbooksCount Int! —
recentEditAt String —

Enum. Sort direction for list queries.

Value Description
ASC —
DESC —

Input object. Generic sort specifier: a whitelisted field name plus a direction.

Field Type Description
field String! —
direction SortDirection! —

Object.

Field Type Description
index Int! —
cells [Cell!]! —

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.

Input object.

Field Type Description
title String —
description String —
locale String —
timezone String —
sourceDriveNodeId Int Link (or relink) the workbook to the Drive node it is saved as.
expectedRevision Int —

Input object.

Field Type Description
title String —
position Int —
frozenRows Int —
frozenColumns Int —
expectedRevision Int —

Object.

Field Type Description
id String! —
title String! —
description String —
locale String! —
timezone String! —
revision Int! —
archivedAt String —
recoveryNodeId Int —
recoveryRevision Int —
recoveryStatus String! —
recoveredAt String —
recoveryError String —
recoveryAvailable Boolean! —
sourceDriveNodeId Int Drive node this workbook was opened from / saved to (open-again matching).
createdAt String! —
updatedAt String! —
worksheets [Worksheet!]! —

Object.

Field Type Description
edges [WorkbookEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Workbook! —

Input object.

Field Type Description
archived Boolean —

Object.

Field Type Description
undoOperationId String —
redoOperationId String —

Input object.

Field Type Description
workbookId String! —
operationId String! —
expectedRevision Int! —
clientInstanceId String! —
clientMutationId String! —

Object.

Field Type Description
success Boolean! —
workbookId String! —
revision Int! —
operationId String! —
commandCount Int! —
idempotentReplay Boolean! —

Input object.

Field Type Description
workbookId String! —
expectedRevision Int! —
clientInstanceId String! —
clientMutationId String! —

Object.

Field Type Description
success Boolean! —
workbook Workbook! —
revision Int! —
sourceRevision Int! —
operationId String! —
restoredWorksheetCount Int! —
restoredCellCount Int! —
idempotentReplay Boolean! —

Object.

Field Type Description
id String! —
workbookId String! —
title String! —
position Int! —
rowCount Int! —
columnCount Int! —
dataEndRow Int! —
frozenRows Int! —
frozenColumns Int! —
createdAt String! —
updatedAt String! —

Input object.

Field Type Description
worksheetId String! —
startRow Int! —
startColumn Int! —
rows [[CellInput!]!]! —
expectedRevision Int —
clientInstanceId String! —
clientMutationId String! —