Fumadocs

Orders

QUERYorders(filter: OrderFilter): [Order!]!
Directives

List all orders.

Arguments

filter?

Filters for the orders query.

Returns

  1. orders

A customer's order.

id*ID!
status*OrderStatus!

The status of an order.

Value inPENDINGDELIVEREDREFUNDED
createdAt*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
}
Variables
{
  "filter": {
    "status": "PENDING",
    "after": "2026-10-01T00:00:00Z"
  }
}
Example Response
{
  "data": {
    "orders": [
      {
        "id": "1",
        "status": "PENDING",
        "total": 10.5,
        "createdAt": "<DateTime>",
        "customer": {
          "name": "string"
        }
      }
    ]
  }
}