Company Create Mutation

Topic summary

Topic: How to store and update custom data for a Shopify Company resource.

  • Initial issue: The poster wants to create a company and add a company metafield but is unsure how to set this up. Metafields are custom fields attached to specific resources.

  • Guidance given: A respondent notes there is no default metafield for the Company resource and suggests using Metaobjects instead. Metaobjects are custom object types that can store structured entries and be accessed across the store; links to Shopify docs and a tutorial were provided.

  • Follow-up: The poster clarifies they already created a custom metafield for Company but cannot find the mutation to add or update its values. They ask which mutation to use.

  • Current status: No mutation or code example has been provided yet, and the question about which API mutation to use remains unanswered. The discussion is open with the key outstanding item being identification of the correct mutation for updating a Company’s custom metafield.

Summarized with AI on January 16. AI used: gpt-5.

I am trying to create a company, but not sure how to create a company meta field, can someone help ?

Hi Lthomas1,

There isn’t a default metafield for a company resource, but you could use Metaobjects to create a custom object where you could store company entries? These would also be accessible on any page of a store. I’d recommend looking into this metaobjects tutorial to see if they could solve for your use case here.

Hope this helps,

Hi Liam,

We already created a custom meta field for the Company. But I can’t find a mutation to add/update values to the same.
Can you help me identify the mutation to use ?

Thanks,
Lily