Skip to main content
Anchor to CollectionConnection

CollectionConnection

connection

An auto-generated type for paginating through multiple Collections.

Anchor to Fields with this connectionFields with this connection

•OBJECT

Represents an item listed in a shop's catalog.

Products support multiple product variants, representing different versions of the same product, and can include various media types. Use the selectedOrFirstAvailableVariant or variantBySelectedOptions fields to help customers find the right variant based on their selections.

Products can be organized into collections, associated with selling plans for subscriptions, and extended with custom data through metafields.

Learn more about working with products and collections.


Was this section helpful?

Anchor to Queries with this connectionQueries with this connection

•query

Returns a paginated list of the shop's collections. Each Collection object includes a nested connection to its products.

Arguments

•Int

Returns up to the first n elements from the list.

•String

Returns the elements that come after the specified cursor.

•Int

Returns up to the last n elements from the list.

•String

Returns the elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.

•CollectionSortKeys
Default:ID

Sort the underlying list by the given key.

•String

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

Anchor to collection_type
•
•
Anchor to updated_at
•


Was this section helpful?

•[CollectionEdge!]!
non-null

A list of edges.

•[Collection!]!
non-null

A list of the nodes contained in CollectionEdge.

•PageInfo!
non-null

Information to aid in pagination.

•UnsignedInt64!
non-null

The total count of Collections.


Was this section helpful?