Query
query PromotionalEntitlements {
promotionalEntitlements {
edges {
cursor
node {
createdAt
customer {
__typename
}
description
endDate
enumValues
environmentId
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"promotionalEntitlements": {
"edges": [
{
"cursor": "value",
"node": {
"createdAt": "value",
"customer": {
"__typename": "Customer"
},
"description": "string",
"endDate": "value",
"enumValues": [
"string"
],
"environmentId": "value"
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}Queries
promotionalEntitlements
QUERY
promotionalEntitlements(filter: PromotionalEntitlementFilter, paging: CursorPaging, sorting: [PromotionalEntitlementSort!]): PromotionalEntitlementConnection!Arguments
filter
default:{}
Specify to filter the records returned.
paging
default:{first: 10}
Limit or page results.
sorting
default:[{direction: DESC, field: createdAt}]
Specify to sort results.
Returns
edges
Array of edges.
pageInfo
Paging information
totalCount
Int!
Fetch total count of records
Query
query PromotionalEntitlements {
promotionalEntitlements {
edges {
cursor
node {
createdAt
customer {
__typename
}
description
endDate
enumValues
environmentId
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"promotionalEntitlements": {
"edges": [
{
"cursor": "value",
"node": {
"createdAt": "value",
"customer": {
"__typename": "Customer"
},
"description": "string",
"endDate": "value",
"enumValues": [
"string"
],
"environmentId": "value"
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}