Query
query Dashboards {
dashboards {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
edges {
cursor
node {
id
name
globalRange {
__typename
... on DashboardPresetRange {
__typename
}
}
globalFilters
widgets {
__typename
}
createdAt {
__typename
}
}
}
}
}Response
{
"data": {
"dashboards": {
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"globalRange": {
"__typename": "DashboardPresetRange"
},
"globalFilters": "string",
"widgets": [
{
"__typename": "DashboardWidget"
}
],
"createdAt": {
"__typename": "DateTime"
}
}
}
]
}
}
}Queries
dashboards
Every dashboard in the workspace. Requires dashboard:read.
QUERY
dashboards(first: Int, after: String, last: Int, before: String): DashboardConnection!Arguments
first
Int
after
String
last
Int
before
String
Returns
pageInfo
edges
[DashboardEdge!]!
Query
query Dashboards {
dashboards {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
edges {
cursor
node {
id
name
globalRange {
__typename
... on DashboardPresetRange {
__typename
}
}
globalFilters
widgets {
__typename
}
createdAt {
__typename
}
}
}
}
}Response
{
"data": {
"dashboards": {
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"globalRange": {
"__typename": "DashboardPresetRange"
},
"globalFilters": "string",
"widgets": [
{
"__typename": "DashboardWidget"
}
],
"createdAt": {
"__typename": "DateTime"
}
}
}
]
}
}
}Was this page helpful?

