Skip to main content
Anchor to CollectionConditionsSource

CollectionConditionsSource

object

Requires read_products access scope.

A collection source that uses conditions and selections to determine which products are included.

•App

The app that created this source, if applicable. In the case of shareable sources, this app manages this source's conditions and selections exclusively.

Show fields
•String

An optional description of the source.

•CollectionSourceExclusion

The rules and selections for excluding products from the collection.

Show fields
•ID!
non-null

The unique identifier for this source.

•CollectionSourceInclusion!
non-null

The rules and selections for including products in the collection.

Show fields
•ProductConnection!
non-null

The products that are members of this source: products matched by the source's inclusion conditions and manual selections, with the source's exclusion conditions, excluded collections, and manual exclusions removed.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


•Boolean!
non-null

Whether this source can be shared across multiple collections.

•CollectionSourceTargetType!
non-null

Whether conditions match products or individual variants.

Show enum values
•String!
non-null

The title of the source.


Was this section helpful?

•query

Returns the shareable collection sources owned by the given app for the shop.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•ID!
required

The ID of the app whose collection sources to return.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.



Was this section helpful?

•mutation

Creates a shareable collection source that can later be linked to one or more collections.

Show payload

Arguments

•CollectionCreateConditionsSourceInput!
required

The input fields for the source to create.

Show input fields

•mutation

Updates a shareable collection source owned by the calling app.

Show payload

Arguments

•CollectionUpdateConditionsSourceInput!
required

The input fields for the source to update.

Show input fields


Was this section helpful?

•interface

Was this section helpful?