Custom data guide

Export all metafield and metaobject definitions from Shopify

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)

Export definitions

Query cost and pages

Shopify limits one query to a cost of 1,000. The copier asks for 25 definitions per page by default; if Shopify says the query costs too much, pick a smaller page size. When there are more, the copier shows the next-page query automatically.

Scopes

Reading definitions needs read access to each resource (for example read_products for products, variants and collections; read_customers for customers) and read_metaobject_definitions for metaobjects.

More guides

Based on metafieldDefinitionCreate, metaobjectDefinitionCreate, validation options and metafieldDefinitionDelete.