Skip to main content

discountSchemesCount

Requires permission products:discount:list.

Returns how many discount schemes match the same filter as discountSchemes, ignoring paging, for a pager. Needs the discounts list permission.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query DiscountSchemesCount {
discountSchemesCount
}

Response:

{
"data": {
"discountSchemesCount": 0
}
}
discountSchemesCount(
filter: DiscountSchemeFilterInput
): Int!

Arguments​

discountSchemesCount.filter ● DiscountSchemeFilterInput input​

Optional filters. The same ones as discountSchemes.

Type​

Int scalar​

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.