Query
query SseMockEventTemplatePage($endpointId: ID!) {
sseMockEventTemplatePage(endpointId: $endpointId) {
nodes {
id
endpointId
name
eventName
data
eventId
}
nextCursor
totalCount
}
}Variables
{
"endpointId": "id"
}Response
{
"data": {
"sseMockEventTemplatePage": {
"nodes": [
{
"id": "id",
"endpointId": "id",
"name": "string",
"eventName": "string",
"data": "string",
"eventId": "string"
}
],
"nextCursor": "string",
"totalCount": 1
}
}
}Queries
sseMockEventTemplatePage
Return a cursor-paginated endpoint-scoped template library.
QUERY
sseMockEventTemplatePage(endpointId: ID!, first: Int, after: String): SseMockEventTemplatePage!Arguments
endpointId
ID!
required
Endpoint that owns the templates.
first
Int
default:100
Maximum nodes to return.
after
String
Cursor returned by the previous page.
Returns
nodes
Templates in the current page.
nextCursor
String
Cursor for the next page, or null at the end.
totalCount
Int!
Total template count before pagination.
Query
query SseMockEventTemplatePage($endpointId: ID!) {
sseMockEventTemplatePage(endpointId: $endpointId) {
nodes {
id
endpointId
name
eventName
data
eventId
}
nextCursor
totalCount
}
}Variables
{
"endpointId": "id"
}Response
{
"data": {
"sseMockEventTemplatePage": {
"nodes": [
{
"id": "id",
"endpointId": "id",
"name": "string",
"eventName": "string",
"data": "string",
"eventId": "string"
}
],
"nextCursor": "string",
"totalCount": 1
}
}
}