Skip to main content
Anchor to CollectionSourceInclusionConditionMetafield

CollectionSourceInclusionConditionMetafield

interface

Requires read_products access scope.

A condition that determines which products should be included in a collection.

This is an interface implemented by a concrete type per condition kind (for example, CollectionSourceInclusionConditionProductTag or CollectionSourceInclusionConditionVariantTitle). Fields such as relation are defined on each concrete type and return a type-specific enum (for example, CollectionSourceInclusionConditionProductTagRelation versus CollectionSourceInclusionConditionVariantTitleRelation). Conditions are mutually exclusive concrete types, but may contain overlapping field names such as relation. If your GraphQL tooling flags these as ambiguous, give each field a distinct alias (for example, tagRelation: relation and variantTitleRelation: relation) or use inline fragments.

MetafieldDefinition!
non-null

The metafield definition to use for the condition.

ID!
non-null

The unique identifier for this condition.


Was this section helpful?

Anchor to Types implemented inTypes implemented in

OBJECT

A condition based on boolean metafield values for including products in a collection.

MetafieldDefinition!
non-null

The metafield definition to use for the condition.

ID!
non-null

The unique identifier for this condition.

CollectionSourceInclusionConditionMetafieldBooleanRelation!
non-null

The relationship between the metafield value and the condition.

Boolean!
non-null

The boolean value to match against.

OBJECT

A condition based on decimal metafield values for including products in a collection.

MetafieldDefinition!
non-null

The metafield definition to use for the condition.

ID!
non-null

The unique identifier for this condition.

CollectionSourceInclusionConditionMetafieldDecimalRelation!
non-null

The relationship between the metafield value and the condition value.

Decimal!
non-null

The decimal value to match against.

OBJECT

A condition based on integer metafield values for including products in a collection.

MetafieldDefinition!
non-null

The metafield definition to use for the condition.

ID!
non-null

The unique identifier for this condition.

CollectionSourceInclusionConditionMetafieldIntegerRelation!
non-null

The relationship between the metafield value and the condition value.

Int!
non-null

The integer value to match against.

OBJECT

A condition based on single metaobject reference metafield values for including products in a collection.

MetafieldDefinition!
non-null

The metafield definition to use for the condition.

ID!
non-null

The unique identifier for this condition.

CollectionSourceInclusionConditionMetafieldMetaobjectRelation!
non-null

The relationship between the metafield value and the condition value.

Metaobject!
non-null

The metaobject to match against.

OBJECT

A condition based on list of metaobject reference metafield values for including products in a collection.

MetafieldDefinition!
non-null

The metafield definition to use for the condition.

ID!
non-null

The unique identifier for this condition.

CollectionConditionMatchType!
non-null

Determines how many values a metafield must match against in order to satisfy this condition. Will be either at least one given value, or all of the given values.

CollectionSourceInclusionConditionMetafieldMetaobjectListRelation!
non-null

The relationship between the metafield value and the condition values.

[Metaobject!]!
non-null

The metaobjects to match against.

OBJECT

A condition based on string metafield values for including products in a collection.

MetafieldDefinition!
non-null

The metafield definition to use for the condition.

ID!
non-null

The unique identifier for this condition.

CollectionConditionMatchType!
non-null

Determines how many values a metafield must match against in order to satisfy this condition. Will be either at least one given value, or all of the given values.

CollectionSourceInclusionConditionMetafieldStringRelation!
non-null

The relationship between the metafield value and the condition values.

[String!]!
non-null

The string values to match against.

OBJECT

A condition based on list of string metafield values for including products in a collection.

MetafieldDefinition!
non-null

The metafield definition to use for the condition.

ID!
non-null

The unique identifier for this condition.

CollectionConditionMatchType!
non-null

Determines how many values a metafield must match against in order to satisfy this condition. Will be either at least one given value, or all of the given values.

CollectionSourceInclusionConditionMetafieldStringListRelation!
non-null

The relationship between the metafield value and the condition values.

[String!]!
non-null

The string values to match against.


Was this section helpful?