younifyd
Menu

collectionConditionMetafieldDefinitions

Lists all metafield definitions that can be used to create collection conditions.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the collectionConditionMetafieldDefinitions action (under Collection).
  3. Fill in the fields below, then reference the result from later steps as {{collectionconditionmetafielddefinitions.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query CollectionConditionMetafieldDefinitions {
  collectionConditionMetafieldDefinitions {
    description
    id
    key
    name
    namespace
    ownerType
    type {
      category
      name
      supportedValidations {
        name
        type
      }
      supportsDefinitionMigrations
      valueType
    }
    validations {
      name
      type
      value
    }
  }
}

Need more? See the Shopify guide for connection setup and behaviour shared by every action.