Queries
purchaseOrders
Retrieves a list of items.
QUERY
purchaseOrders(after: String, before: String, distinctOn: [PurchaseOrderSortEnum], filters: PurchaseOrdersInputFilters, first: Int, last: Int, sort: [PurchaseOrderSortEnum]): PurchaseOrdersConnectionArguments
after
String
before
String
distinctOn
filters
first
Int
last
Int
sort
Returns
edges
Contains the nodes in this connection.
pageInfo
Pagination data for connection.
Query
query PurchaseOrders {
purchaseOrders {
edges {
cursor
node {
Attributes {
__typename
}
LastSessionId
_ApprovalLevelsCount
_ApprovalRequestsCount
_ApprovalsCount
_AssigneesCount
}
}
pageInfo {
count
endCursor
hasNextPage
hasPreviousPage
startCursor
totalCount
}
}
}Response
{
"data": {
"purchaseOrders": {
"edges": [
{
"cursor": "string",
"node": {
"Attributes": [
{
"__typename": "PurchaseOrderAttribute"
}
],
"LastSessionId": "string",
"_ApprovalLevelsCount": 1,
"_ApprovalRequestsCount": 1,
"_ApprovalsCount": 1,
"_AssigneesCount": 1
}
}
],
"pageInfo": {
"count": 1,
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"totalCount": 1
}
}
}
}Was this page helpful?
⌘I
Query
query PurchaseOrders {
purchaseOrders {
edges {
cursor
node {
Attributes {
__typename
}
LastSessionId
_ApprovalLevelsCount
_ApprovalRequestsCount
_ApprovalsCount
_AssigneesCount
}
}
pageInfo {
count
endCursor
hasNextPage
hasPreviousPage
startCursor
totalCount
}
}
}Response
{
"data": {
"purchaseOrders": {
"edges": [
{
"cursor": "string",
"node": {
"Attributes": [
{
"__typename": "PurchaseOrderAttribute"
}
],
"LastSessionId": "string",
"_ApprovalLevelsCount": 1,
"_ApprovalRequestsCount": 1,
"_ApprovalsCount": 1,
"_AssigneesCount": 1
}
}
],
"pageInfo": {
"count": 1,
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"totalCount": 1
}
}
}
}