Company Create Mutation

Solved

Company Create Mutation

lthomas1
Shopify Partner
30 0 5

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

Accepted Solution (1)

Liam
Community Manager
3108 341 879

This is an accepted solution.

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,

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

Liam
Community Manager
3108 341 879

This is an accepted solution.

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,

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

lthomas1
Shopify Partner
30 0 5

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