Skip to content
Pyck docs

inventoryItems

Since pyck v0.27.0

Served by: inventory

Name Type Default Description
after Cursor Returns the elements in the list that come after the specified cursor.
first Int Returns the first n elements from the list.
before Cursor Returns the elements in the list that come before the specified cursor.
last Int Returns the last n elements from the list.
orderBy InventoryItemOrder Ordering options for InventoryItems returned from the connection.
where InventoryItemWhereInput Filtering options for InventoryItems returned from the connection.

InventoryItemConnection!

Returns the 3 most recently created inventory items.

query GetInventoryItems($after: Cursor, $first: Int, $before: Cursor, $last: Int, $orderBy: InventoryItemOrder, $where: InventoryItemWhereInput) {
inventoryItems(after: $after, first: $first, before: $before, last: $last, orderBy: $orderBy, where: $where) {
totalCount
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
createdAt
createdBy
currentStockTotals {
lastChangedAt
quantity
}
data
dataTypeID
dataTypeSlug
deletedAt
deletedBy
id
sku
tenantID
updatedAt
updatedBy
}
}
}
}

Variables

{
"first": 3,
"orderBy": {
"direction": "DESC",
"field": "CREATED_AT"
},
"where": {
"createdAtGTE": "2023-10-17T00:00:00Z"
}
}