--- title: CollectionConnection - Storefront API description: | An auto-generated type for paginating through multiple Collections. api_version: 2025-01 api_name: storefront type: connection api_type: graphql source_url: html: >- https://shopify.dev/docs/api/storefront/2025-01/connections/CollectionConnection md: >- https://shopify.dev/docs/api/storefront/2025-01/connections/CollectionConnection.md --- # Collection​Connection connection An auto-generated type for paginating through multiple Collections. ## Fields with this connection * [Product.collections](https://shopify.dev/docs/api/storefront/2025-01/objects/Product#field-Product.fields.collections) OBJECT The `Product` object lets you manage products in a merchant’s store. Products are the goods and services that merchants offer to customers. They can include various details such as title, description, price, images, and options such as size or color. You can use [product variants](https://shopify.dev/docs/api/storefront/latest/objects/ProductVariant) to create or update different versions of the same product. You can also add or update product [media](https://shopify.dev/docs/api/storefront/latest/interfaces/Media). Products can be organized by grouping them into a [collection](https://shopify.dev/docs/api/storefront/latest/objects/Collection). Learn more about working with [products and collections](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections). *** ## Queries with this connection * [collections](https://shopify.dev/docs/api/storefront/2025-01/queries/collections) query List of the shop’s collections. * first [Int](https://shopify.dev/docs/api/storefront/2025-01/scalars/Int) ### Arguments Returns up to the first `n` elements from the list. * after [String](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) Returns the elements that come after the specified cursor. * last [Int](https://shopify.dev/docs/api/storefront/2025-01/scalars/Int) Returns up to the last `n` elements from the list. * before [String](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) Returns the elements that come before the specified cursor. * reverse [Boolean](https://shopify.dev/docs/api/storefront/2025-01/scalars/Boolean) Default:false Reverse the order of the underlying list. * sort​Key [Collection​Sort​Keys](https://shopify.dev/docs/api/storefront/2025-01/enums/CollectionSortKeys) Default:ID Sort the underlying list by the given key. * query [String](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) Apply one or multiple filters to the query. Refer to the detailed [search syntax](https://shopify.dev/api/usage/search-syntax) for more information about using filters. * collection\_type * title * updated\_at *** *** ## Possible returns * edges [\[Collection​Edge!\]!](https://shopify.dev/docs/api/storefront/2025-01/objects/CollectionEdge) non-null A list of edges. * nodes [\[Collection!\]!](https://shopify.dev/docs/api/storefront/2025-01/objects/Collection) non-null A list of the nodes contained in CollectionEdge. * page​Info [Page​Info!](https://shopify.dev/docs/api/storefront/2025-01/objects/PageInfo) non-null Information to aid in pagination. * total​Count [Unsigned​Int64!](https://shopify.dev/docs/api/storefront/2025-01/scalars/UnsignedInt64) non-null The total count of Collections. *** ## Map ### Fields with this connection * {}[Product.collections](https://shopify.dev/docs/api/storefront/2025-01/objects/Product#field-Product.fields.collections) ### Queries with this connection * \[collections](https://shopify.dev/docs/api/storefront/2025-01/queries/collections) ### Possible returns * <->[Collection​Connection.edges](https://shopify.dev/docs/api/storefront/2025-01/connections/CollectionConnection#returns-edges) * <->[Collection​Connection.nodes](https://shopify.dev/docs/api/storefront/2025-01/connections/CollectionConnection#returns-nodes) * <->[Collection​Connection.pageInfo](https://shopify.dev/docs/api/storefront/2025-01/connections/CollectionConnection#returns-pageInfo) * <->[Collection​Connection.totalCount](https://shopify.dev/docs/api/storefront/2025-01/connections/CollectionConnection#returns-totalCount)