Query
query CreditGrants($input: GetCreditGrantsInput!) {
creditGrants(input: $input) {
edges {
cursor
node {
additionalMetaData
amount
automaticRechargeConfigurationId
comment
consumedAmount
cost {
__typename
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Variables
{
"input": {
"customerId": "string"
}
}Response
{
"data": {
"creditGrants": {
"edges": [
{
"cursor": "string",
"node": {
"additionalMetaData": "value",
"amount": 1.5,
"automaticRechargeConfigurationId": "value",
"comment": "string",
"consumedAmount": 1.5,
"cost": {
"__typename": "Money"
}
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}Queries
creditGrants
Get all credit grants for an environment
QUERY
creditGrants(input: GetCreditGrantsInput!): CreditGrantConnection!Arguments
input
required
Returns
edges
[CreditGrantEdge!]!
Edges in the current page
pageInfo
Pagination information
totalCount
Int!
Total number of items matching the filter
Query
query CreditGrants($input: GetCreditGrantsInput!) {
creditGrants(input: $input) {
edges {
cursor
node {
additionalMetaData
amount
automaticRechargeConfigurationId
comment
consumedAmount
cost {
__typename
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Variables
{
"input": {
"customerId": "string"
}
}Response
{
"data": {
"creditGrants": {
"edges": [
{
"cursor": "string",
"node": {
"additionalMetaData": "value",
"amount": 1.5,
"automaticRechargeConfigurationId": "value",
"comment": "string",
"consumedAmount": 1.5,
"cost": {
"__typename": "Money"
}
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}