Custom data guide

How to copy metafield and metaobject definitions to another store

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)

Open the copier

Steps

  1. Install Shopify’s GraphiQL app on both stores, with read scopes on store A and write scopes on store B (the copier lists them).
  2. Run the metaobject and metafield definition queries on store A and paste each result.
  3. Optional but recommended: run the same queries on store B, so definitions it already has are skipped.
  4. Review the checklist and the items the tool skipped, and why.
  5. Run batch 1 on store B, paste the result, then the rest. Paste every result back to confirm.

What is copied

Entries and values are not copied: move metaobject entries with the Metaobject CSV Bridge.

  • Name, namespace and key, description, type and validations.
  • Pinned status, storefront access, “filter in admin”, collection conditions and unique values.
  • Conditional definitions (category constraints).
  • Metaobject fields, display name, publishable, translatable, SEO and web pages settings.

More guides

Based on metafieldDefinitionCreate, metaobjectDefinitionCreate, validation options and metafieldDefinitionDelete.