Skip to main content

grnsCount

Requires permission purchase:grn:list.

Returns how many goods receipts match the filters, without loading them. Needs the goods receipt (GRN) feature on your plan.

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 GrnsCount {
grnsCount
}

Response:

{
"data": {
"grnsCount": 0
}
}
grnsCount(
filter: GRNFilterInput
): Int!

Arguments​

grnsCount.filter ● GRNFilterInput input​

Filter criteria for GRN records. Omit to match all.

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.