Query
query Discussions {
discussions {
edges {
node {
id
threadId
thread {
__typename
}
title
messages {
__typename
}
status
}
cursor
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"discussions": {
"edges": [
{
"node": {
"id": "id",
"threadId": "id",
"thread": {
"__typename": "Thread"
},
"title": "string",
"messages": {
"__typename": "ThreadDiscussionMessageConnection"
},
"status": "OPEN"
},
"cursor": "string"
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
discussions
List discussions in the workspace, with optional filtering and sorting. Supports cursor-based pagination. Filter by thread, status, creator, last-activity timestamps, source entity, or discussion type.
QUERY
discussions(filters: DiscussionsFilter, sortBy: DiscussionsSort, first: Int, after: String, last: Int, before: String): ThreadDiscussionConnection!Arguments
filters
sortBy
first
Int
after
String
last
Int
before
String
Returns
edges
pageInfo
Query
query Discussions {
discussions {
edges {
node {
id
threadId
thread {
__typename
}
title
messages {
__typename
}
status
}
cursor
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"discussions": {
"edges": [
{
"node": {
"id": "id",
"threadId": "id",
"thread": {
"__typename": "Thread"
},
"title": "string",
"messages": {
"__typename": "ThreadDiscussionMessageConnection"
},
"status": "OPEN"
},
"cursor": "string"
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

