Batch Connection
An auto-generated type for paginating through multiple Batches.
Anchor to Queries with this connectionQueries with this connection
- batches (BatchConnection)
- fulfillmentOrderBatches (BatchConnection)
- •query
Returns a paginated list of batches for the shop.
Show fields
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
Show filters
- Anchor to assigned_to•id
Filter batches where any step is assigned to this staff member.
assigned_to:12345- Anchor to created_at•time
Filter by creation date and time.
created_at:>'2020-10-21T23:39:20Z'created_at:<nowcreated_at:<='2024'- Anchor to item_count•integer
Filter batches by the number of items they contain.
item_count:0item_count:>5item_count:<=10- Anchor to name•string
Filter batches by name. Quoted values match the whole name, ignoring case. Unquoted values match substrings.
name:2026-04-15name:"Morning picks"- Anchor to status•string
Filter batches by their status.
openin_progressclosedstatus:openstatus:closedstatus:in_progress- Anchor to updated_at•time
Filter batches by their last update date and time. Dates without a timezone use the shop's timezone.
updated_at:>=2026-10-19updated_at:<'2026-10-20T00:00:00Z'
Example:
Example:
Example:
Example:
Valid values:
Example:
Example:
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Batch
Key Sort Keys Default:CREATED_AT Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
Show enum values
Arguments
- •query
Returns a paginated list of non-closed batches that can be filtered by fulfillment order attributes.
Show fields
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to fulfillmentOrderQueryfulfillment•String
Order Query A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
Show filters
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
Show filters
- Anchor to assigned_to•id
Filter batches where any step is assigned to this staff member.
assigned_to:12345- Anchor to created_at•time
Filter by creation date and time.
created_at:>'2020-10-21T23:39:20Z'created_at:<nowcreated_at:<='2024'- Anchor to item_count•integer
Filter batches by the number of items they contain.
item_count:0item_count:>5item_count:<=10- Anchor to name•string
Filter batches by name. Quoted values match the whole name, ignoring case. Unquoted values match substrings.
name:2026-04-15name:"Morning picks"- Anchor to status•string
Filter batches by their status.
openin_progressclosedstatus:openstatus:closedstatus:in_progress- Anchor to updated_at•time
Filter batches by their last update date and time. Dates without a timezone use the shop's timezone.
updated_at:>=2026-10-19updated_at:<'2026-10-20T00:00:00Z'
Example:
Example:
Example:
Example:
Valid values:
Example:
Example:
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Batch
Key Sort Keys Default:CREATED_AT Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
Show enum values
Arguments
Anchor to Possible returnsPossible returns
- edges ([BatchEdge!]!)
- nodes ([Batch!]!)
- pageInfo (PageInfo!)
- Anchor to edgesedges•[Batch
Edge!]! non-null The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.
Show fields
- Anchor to nodesnodes•[Batch!]!non-null
A list of nodes that are contained in BatchEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.
Show fields
- Anchor to pageInfopage•Page
Info Info! non-null An object that’s used to retrieve cursor information about the current page.
Show fields