Orders
QUERY
orders(filter: OrderFilter): [Order!]!Directives
List all orders.
Arguments
filter?Filters for the orders query.
Returns
- orders
A customer's order.
id*ID!status*OrderStatus!The status of an order.
Value in
PENDINGDELIVEREDREFUNDEDcreatedAt*DateTime!Time at which the order was created.
total*Float!customer*A registered customer.
Pending Orders
Orders still pending since the start of October.
query PendingOrders($filter: OrderFilter) {
orders(filter: $filter) {
...OrderSummary
customer {
name
}
}
}
fragment OrderSummary on Order {
id
status
total
createdAt
}{
"filter": {
"status": "PENDING",
"after": "2026-10-01T00:00:00Z"
}
}{
"data": {
"orders": [
{
"id": "1",
"status": "PENDING",
"total": 10.5,
"createdAt": "<DateTime>",
"customer": {
"name": "string"
}
}
]
}
}