Skip to content
Pyck docs

You are reading the Dev docs (main @ e991a08). They can differ from the released product.Dev docs, not the release

Switch to LatestLatest

transactions

Served by: inventory

Name Type 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 TransactionOrder Ordering options for Transactions returned from the connection.
where TransactionWhereInput Filtering options for Transactions returned from the connection.

TransactionConnection!

Returns the 3 most recent inventory transactions.

query GetTransactions($after: Cursor, $first: Int, $before: Cursor, $last: Int, $orderBy: TransactionOrder, $where: TransactionWhereInput) {
transactions(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
itemID
quantity
repositoryID
tenantID
type
updatedAt
updatedBy
}
}
}
}

Variables

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