Can a cart transform function use a metafield reference in the way that you can in the admin graphql API?

Can a cart transform function use a metafield reference in the way that you can in the admin graphql API?

Ex:

{
  customer(id:"gid://shopify/Customer/6915035594870") {
    id
    firstName
    lastName
    metafield(namespace:"custom", key:"end_customer_for") {
      value
      reference {
      	... on Company {
          name
          metafield(namespace:"custom",key:"price_level") {
            value
          }
        }
      }
    }
  }
}

Hey Kalen,

This isn’t currently possible with cart transform functions - but I’ve logged this feedback with our product team who are exploring how to expand capabilities with this function type.

1 Like