currentStocks
Since pyck v0.27.0
Served by: inventory
Arguments
Section titled “Arguments”| Name | Type | Default | Description |
|---|---|---|---|
after |
Cursor | ||
first |
Int | ||
before |
Cursor | ||
last |
Int | ||
orderBy |
StockOrder | ||
where |
StockWhereInput |
Returns
Section titled “Returns”Example
Section titled “Example”Returns the first 10 current stock rows, which are the latest row for each repository and item pair.
query GetCurrentStocks($after: Cursor, $first: Int, $before: Cursor, $last: Int, $orderBy: StockOrder, $where: StockWhereInput) { currentStocks(after: $after, first: $first, before: $before, last: $last, orderBy: $orderBy, where: $where) { totalCount pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { cursor node { createdAt createdBy deletedAt deletedBy id incomingStock itemID movementID outgoingStock ownIncomingStock ownOutgoingStock ownQuantity quantity repositoryID tenantID updatedAt updatedBy version } } }}Variables
{ "first": 10}