Query
query SseMockCompositionPage($endpointId: ID!) {
sseMockCompositionPage(endpointId: $endpointId) {
nodes {
id
name
statusCode
headers {
name
value
}
blocks {
id
kind
delayMs
script
customEvent {
__typename
}
template {
__typename
}
}
createdAt
}
nextCursor
totalCount
}
}Variables
{
"endpointId": "id"
}Response
{
"data": {
"sseMockCompositionPage": {
"nodes": [
{
"id": "id",
"name": "string",
"statusCode": 1,
"headers": [
{
"name": "string",
"value": "string"
}
],
"blocks": [
{
"id": "id",
"kind": "EVENT",
"delayMs": 1,
"script": "string",
"customEvent": {
"__typename": "SseMockEvent"
},
"template": {
"__typename": "SseMockEventTemplate"
}
}
],
"createdAt": "string"
}
],
"nextCursor": "string",
"totalCount": 1
}
}
}Queries
sseMockCompositionPage
Return a cursor-paginated endpoint-scoped mock library.
QUERY
sseMockCompositionPage(endpointId: ID!, first: Int, after: String): SseMockCompositionPage!Arguments
endpointId
ID!
required
Endpoint that owns the compositions.
first
Int
default:100
Maximum nodes to return.
after
String
Cursor returned by the previous page.
Returns
nodes
Compositions in the current page.
nextCursor
String
Cursor for the next page, or null at the end.
totalCount
Int!
Total composition count before pagination.
Query
query SseMockCompositionPage($endpointId: ID!) {
sseMockCompositionPage(endpointId: $endpointId) {
nodes {
id
name
statusCode
headers {
name
value
}
blocks {
id
kind
delayMs
script
customEvent {
__typename
}
template {
__typename
}
}
createdAt
}
nextCursor
totalCount
}
}Variables
{
"endpointId": "id"
}Response
{
"data": {
"sseMockCompositionPage": {
"nodes": [
{
"id": "id",
"name": "string",
"statusCode": 1,
"headers": [
{
"name": "string",
"value": "string"
}
],
"blocks": [
{
"id": "id",
"kind": "EVENT",
"delayMs": 1,
"script": "string",
"customEvent": {
"__typename": "SseMockEvent"
},
"template": {
"__typename": "SseMockEventTemplate"
}
}
],
"createdAt": "string"
}
],
"nextCursor": "string",
"totalCount": 1
}
}
}