Query
query Hooks {
hooks {
edges {
cursor
node {
account {
__typename
}
configuration
createdAt
description
endpoint
environment {
__typename
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"hooks": {
"edges": [
{
"cursor": "value",
"node": {
"account": {
"__typename": "Account"
},
"configuration": "value",
"createdAt": "value",
"description": "string",
"endpoint": "string",
"environment": {
"__typename": "Environment"
}
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}Queries
hooks
QUERY
hooks(filter: HookFilter, paging: CursorPaging, sorting: [HookSort!]): HookConnection!Arguments
filter
default:{}
Specify to filter the records returned.
paging
default:{first: 10}
Limit or page results.
sorting
[HookSort!]
default:[{direction: DESC, field: createdAt}]
Specify to sort results.
Returns
edges
[HookEdge!]!
Array of edges.
pageInfo
Paging information
totalCount
Int!
Fetch total count of records
Query
query Hooks {
hooks {
edges {
cursor
node {
account {
__typename
}
configuration
createdAt
description
endpoint
environment {
__typename
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"hooks": {
"edges": [
{
"cursor": "value",
"node": {
"account": {
"__typename": "Account"
},
"configuration": "value",
"createdAt": "value",
"description": "string",
"endpoint": "string",
"environment": {
"__typename": "Environment"
}
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}