Query
query Products {
products {
edges {
cursor
node {
additionalMetaData
addons {
__typename
}
autoCancellationRules {
__typename
}
awsMarketplaceProductCode
awsMarketplaceProductId
createdAt
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"products": {
"edges": [
{
"cursor": "value",
"node": {
"additionalMetaData": "value",
"addons": [
{
"__typename": "Addon"
}
],
"autoCancellationRules": [
{
"__typename": "AutoCancellationRule"
}
],
"awsMarketplaceProductCode": "string",
"awsMarketplaceProductId": "string",
"createdAt": "value"
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}Queries
products
QUERY
products(filter: ProductFilter, paging: CursorPaging, sorting: [ProductSort!]): ProductConnection!Arguments
filter
default:{}
Specify to filter the records returned.
paging
default:{first: 10}
Limit or page results.
sorting
[ProductSort!]
default:[{direction: DESC, field: createdAt}]
Specify to sort results.
Returns
edges
[ProductEdge!]!
Array of edges.
pageInfo
Paging information
totalCount
Int!
Fetch total count of records
Query
query Products {
products {
edges {
cursor
node {
additionalMetaData
addons {
__typename
}
autoCancellationRules {
__typename
}
awsMarketplaceProductCode
awsMarketplaceProductId
createdAt
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"products": {
"edges": [
{
"cursor": "value",
"node": {
"additionalMetaData": "value",
"addons": [
{
"__typename": "Addon"
}
],
"autoCancellationRules": [
{
"__typename": "AutoCancellationRule"
}
],
"awsMarketplaceProductCode": "string",
"awsMarketplaceProductId": "string",
"createdAt": "value"
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}