stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > MetafieldRelation

AdminTypes.MetafieldRelation interface

Defines a relation between two resources via a reference metafield. The referencer owns the joining field with a given namespace and key, while the target is referenced by the field.

Signature:

export interface MetafieldRelation 

Properties

Property Modifiers Type Description
key   Scalars[‘String’][‘output’] The key of the field making the reference.
name   Scalars[‘String’][‘output’] The name of the field making the reference.
namespace   Scalars[‘String’][‘output’] The namespace of the metafield making the reference, or type of the metaobject.
referencer   MetafieldReferencer The resource making the reference.
target   MetafieldReference The referenced resource.