Collection Connection
An auto-generated type for paginating through multiple Collections.
Anchor to Fields with this connectionFields with this connection
- •OBJECT
The list of collections published to the channel.
- •OBJECT
The list of collections that the discount can have as a prerequisite or the list of collections to which the discount can be applied.
- •OBJECT
The collections to which the price rule applies.
- •OBJECT
The collections required for the price rule to be applicable.
- •OBJECT
A list of collections that include the product.
- •OBJECT
The list of collections published to the publication.
- •OBJECTDeprecated
Anchor to Queries with this connectionQueries with this connection
- •query
Retrieves a list of collections in a store. Collections are groups of products that merchants can organize for display in their online store and other sales channels. For example, an athletics store might create different collections for running attire, shoes, and accessories.
Use the
collections
query when you need to:- Build a browsing interface for a store's product groupings.
- Create collection searching, sorting, and filtering experiences (for example, by title, type, or published status).
- Sync collection data with external systems.
- Manage both custom (manual) and smart (automated) collections.
The
collections
query supports pagination for large catalogs and saved searches for frequently used collection queries.The
collections
query returns collections with their associated metadata, including:- Basic collection information (title, description, handle, and type)
- Collection image and SEO metadata
- Product count and product relationships
- Collection rules (for smart collections)
- Publishing status and publication details
- Metafields and custom attributes
Learn more about using metafields with smart collections.
Anchor to Possible returnsPossible returns
- Anchor to edgesedges•[Collection
Edge!]! non-null The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.
- Anchor to nodesnodes•[Collection!]!non-null
A list of nodes that are contained in CollectionEdge. 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.
- Anchor to pageInfopage•Page
Info Info! non-null An object that’s used to retrieve cursor information about the current page.