Metafield object
The metafield object reflects the REST Admin API's representation of a metafield.
Mechanic includes support for the metafield object for completeness, but it is not the most useful way to go about using metafield values (see Metafield representation object).
What it contains
Every property from the Metafield resource in the Shopify REST Admin API
How to access it
For modern metafields, use
resource.metafields.namespace.key.metafieldto retrieve the metafield object itself.Use
resource.metafields.namespace.keyto access the metafield representation object for that metafield.
For deprecated metafields, use
resource.metafields.namespace.keyto retrieve the parsed, appropriately-typed metafield value.
Last updated
Was this helpful?