Query
query Workspaces {
workspaces {
edges {
cursor
node {
name
uid
createdAt
dbtVersion
supportedDbtVersions
dbtPartialParsing
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
totalCount
}
}Response
{
"data": {
"workspaces": {
"edges": [
{
"cursor": "string",
"node": {
"name": "string",
"uid": "string",
"createdAt": "value",
"dbtVersion": "string",
"supportedDbtVersions": [
"string"
],
"dbtPartialParsing": true
}
}
],
"pageInfo": {
"startCursor": "string",
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true
},
"totalCount": 1
}
}
}workspaces
The workspaces the API key can reach: a workspace key’s own, or every workspace a company API key is allowed. Needs workspaces:list.
QUERY
workspaces(first: Int, after: String): WorkspaceConnection!Arguments
first
Int
default:100
How many to return: 100 by default, at most 500. 0 returns only totalCount.
after
String
The endCursor of the previous page.
Returns
edges
[WorkspaceEdge!]!
This page, in order.
pageInfo
Where this page sits in the list.
totalCount
Int!
How many there are across all pages.
Query
query Workspaces {
workspaces {
edges {
cursor
node {
name
uid
createdAt
dbtVersion
supportedDbtVersions
dbtPartialParsing
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
totalCount
}
}Response
{
"data": {
"workspaces": {
"edges": [
{
"cursor": "string",
"node": {
"name": "string",
"uid": "string",
"createdAt": "value",
"dbtVersion": "string",
"supportedDbtVersions": [
"string"
],
"dbtPartialParsing": true
}
}
],
"pageInfo": {
"startCursor": "string",
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true
},
"totalCount": 1
}
}
}