Query
query MyWorkspaces {
myWorkspaces {
edges {
cursor
node {
id
name
publicName
isDemoWorkspace
domainName
domainNames
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"myWorkspaces": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"publicName": "string",
"isDemoWorkspace": true,
"domainName": "string",
"domainNames": [
"string"
]
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
myWorkspaces
Returns all workspaces the currently authenticated human user belongs to, paginated. Not available to machine users. Use this to let users switch between workspaces.
QUERY
myWorkspaces(first: Int, after: String, last: Int, before: String): WorkspaceConnection!Arguments
first
Int
after
String
last
Int
before
String
Returns
edges
[WorkspaceEdge!]!
pageInfo
Query
query MyWorkspaces {
myWorkspaces {
edges {
cursor
node {
id
name
publicName
isDemoWorkspace
domainName
domainNames
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"myWorkspaces": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"publicName": "string",
"isDemoWorkspace": true,
"domainName": "string",
"domainNames": [
"string"
]
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

