Returns the number of draft orders that match the query. Limited to a maximum of 10000.
Access Scopes
`read_draft_orders` access scope.
Arguments
limit:
Int -
The upper bound on count value before returning a result.
query:
String -
A filter made up of terms, connectives, modifiers, and comparators.
| name | type | description | acceptable_values | default_value | example_use |
| ---- | ---- | ---- | ---- | ---- | ---- |
| default | string | Filter by a case-insensitive search of multiple fields in a document. | | | - `query=Bob Norman` - `query=title:green hoodie` |
| created_at | time |
| customer_id | id |
| id | id | Filter by `id` range. | | | - `id:1234` - `id:>=1234` - `id:<=1234` |
| ids | string |
| source | string |
| status | string |
| tag | string |
| updated_at | time |
You can apply one or more filters to a query. Learn more about [Shopify API search syntax](https://shopify.dev/api/usage/search-syntax).
savedSearchId:
ID -
The ID of an existing saved search.
The search’s query string is used as the query argument.
Refer to the [`SavedSearch`](https://shopify.dev/api/admin-graphql/latest/objects/savedsearch) object.
sinceId:
ID -
The ID of the draft order after which to fetch the next page of draft orders.
status:
DraftOrderStatus -
Draft order status to filter by.
updatedAtMax:
DateTime -
Latest date and time when the draft order was last updated.
updatedAtMin:
DateTime -
Earliest date and time when the draft order was last updated.