Query
query Notifications {
notifications {
edges {
cursor
node {
createdAt
id
queuedTask {
__typename
}
seen
task {
__typename
}
type
}
}
nodes {
createdAt
id
queuedTask {
artifacts {
__typename
}
awaitingConfirmation
configuration {
__typename
... on CardsImportConfiguration {
__typename
}
}
createdAt
createdBy
details {
__typename
... on CardsImportDetails {
__typename
}
}
}
seen
task {
createdAt
id
lastUpdatedAt
progress
status
}
type
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"notifications": {
"edges": [
{
"cursor": "string",
"node": {
"createdAt": "value",
"id": "id",
"queuedTask": {
"__typename": "QueuedTask"
},
"seen": true,
"task": {
"__typename": "ExportTask"
},
"type": "CARDS_IMPORT"
}
}
],
"nodes": [
{
"createdAt": "value",
"id": "id",
"queuedTask": {
"artifacts": [
{
"__typename": "QueuedTaskArtifact"
}
],
"awaitingConfirmation": true,
"configuration": {
"__typename": "CardsImportConfiguration"
},
"createdAt": "value",
"createdBy": "value",
"details": {
"__typename": "CardsImportDetails"
}
},
"seen": true,
"task": {
"createdAt": "value",
"id": "id",
"lastUpdatedAt": "value",
"progress": 1.5,
"status": "CREATED"
},
"type": "CARDS_IMPORT"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Queries
notifications
The signed-in user’s notification feed, newest first. Each row points at the task it reports on, behind the Task interface, so a client renders the shared fields directly and reaches for an inline fragment for the type-specific payload.
QUERY
notifications(after: String, before: String, first: Int, last: Int, order: [NotificationSortInput!], where: NotificationFilterInput): NotificationsConnectionArguments
after
String
Returns the elements in the list that come after the specified cursor.
before
String
Returns the elements in the list that come before the specified cursor.
first
Int
Returns the first n elements from the list.
last
Int
Returns the last n elements from the list.
order
Returns
edges
A list of edges.
nodes
[Notification!]
A flattened list of the nodes.
pageInfo
Information to aid in pagination.
totalCount
Int!
Identifies the total count of items in the connection.
Query
query Notifications {
notifications {
edges {
cursor
node {
createdAt
id
queuedTask {
__typename
}
seen
task {
__typename
}
type
}
}
nodes {
createdAt
id
queuedTask {
artifacts {
__typename
}
awaitingConfirmation
configuration {
__typename
... on CardsImportConfiguration {
__typename
}
}
createdAt
createdBy
details {
__typename
... on CardsImportDetails {
__typename
}
}
}
seen
task {
createdAt
id
lastUpdatedAt
progress
status
}
type
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"notifications": {
"edges": [
{
"cursor": "string",
"node": {
"createdAt": "value",
"id": "id",
"queuedTask": {
"__typename": "QueuedTask"
},
"seen": true,
"task": {
"__typename": "ExportTask"
},
"type": "CARDS_IMPORT"
}
}
],
"nodes": [
{
"createdAt": "value",
"id": "id",
"queuedTask": {
"artifacts": [
{
"__typename": "QueuedTaskArtifact"
}
],
"awaitingConfirmation": true,
"configuration": {
"__typename": "CardsImportConfiguration"
},
"createdAt": "value",
"createdBy": "value",
"details": {
"__typename": "CardsImportDetails"
}
},
"seen": true,
"task": {
"createdAt": "value",
"id": "id",
"lastUpdatedAt": "value",
"progress": 1.5,
"status": "CREATED"
},
"type": "CARDS_IMPORT"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Was this page helpful?