Skip to main content

stockMovementsCount

Requires at least one of the permissions inventory:stock_adjustment:read, inventory:stock_movement:list, inventory:stock_movement:read or inventory:stock_transfer:read.

Returns how many stock movements match the same filter as stockMovements, ignoring paging, for a pager. Needs the stock movement read or list permission, or the stock adjustment or stock transfer read 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 StockMovementsCount {
stockMovementsCount
}

Response:

{
"data": {
"stockMovementsCount": 0
}
}
stockMovementsCount(
filter: StockMovementFilterInput
): Int!

Arguments​

stockMovementsCount.filter ● StockMovementFilterInput input​

Optional filters. The same ones as stockMovements.

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.