Custom data guide

Why copied metaobject reference fields break, and how to fix them

What you’ll need

  • Access to both stores in your Shopify admin

    How to get this: Access to both stores in your Shopify admin
    1. Sign in at admin.shopify.com with the account you use for your store.
    2. If you are staff rather than the owner, ask the owner to give you both stores permission in Settings › Users.

    Step-by-step guide (opens in a new tab)

  • Shopify’s free GraphiQL app (with installed on both stores, with read_metaobject_definitions and the write access for each type you copy access)

    How to get this: Shopify’s free GraphiQL app
    1. Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
    2. Then open it any time from Apps › Shopify GraphiQL App in your admin.

    Step-by-step guide (opens in a new tab)

Copy with references fixed

Example

Validation, store A → store B
{ name: "metaobject_definition_id", value: "gid://shopify/MetaobjectDefinition/123" }
→ { name: "metaobject_definition_type", value: "designer" }

Other things that don’t copy by API

  • Admin access: Shopify only accepts it for app-owned definitions, so it’s left out.
  • Customer account access on store-owned metafields: set it in the admin.
  • App-owned definitions: install the app on store B.

More guides

Based on metafieldDefinitionCreate, metaobjectDefinitionCreate, validation options and metafieldDefinitionDelete.