Skip to content

currentStocks

Served by: inventory

Name Type
after Cursor
first Int
before Cursor
last Int
orderBy StockOrder
where StockWhereInput

StockConnection!

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
}