Collection Conditions Source
Requires access scope.
A collection source that uses conditions and selections to determine which products are included.
Anchor to FieldsFields
- app (App)
- description (String)
- id (ID!)
- inclusion (CollectionSourceInclusion!)
- shareable (Boolean!)
- targetType (CollectionSourceTargetType!)
- title (String!)
- •App
The app that manages this source, if applicable.
- Anchor to descriptiondescription•String
An optional description of the source.
- •ID!non-null
The unique identifier for this source.
- Anchor to inclusioninclusion•Collection
Source Inclusion! non-null The rules and selections for including products in the collection.
- •Boolean!non-null
Whether this source can be shared across multiple collections.
- Anchor to targetTypetarget•Collection
Type Source Target Type! non-null Whether conditions match products or individual variants.
- Anchor to titletitle•String!non-null
The title of the source.
Anchor to QueriesQueries
- collectionConditionsSources (CollectionConditionsSourceConnection!)
- •query
Returns the shareable collection sources owned by the given app for the shop.
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to appIdapp•ID!
Id required The ID of the app whose collection sources to return.
- 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 reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
Anchor to MutationsMutations
- collectionConditionsSourceCreate (CollectionConditionsSourceCreatePayload)
- collectionConditionsSourceUpdate (CollectionConditionsSourceUpdatePayload)
- •mutation
Creates a shareable collection source that can later be linked to one or more collections.
- Anchor to inputinput•Collection
Create Conditions Source Input! required The input fields for the source to create.
Arguments
- •mutation
Updates a shareable collection source owned by the calling app.
- Anchor to inputinput•Collection
Update Conditions Source Input! required The input fields for the source to update.
Arguments