Metafield for Store

Jusch
Visitor
1 0 0

Hi! 

I´m bulding an embedded app helping merchants to integrate a small info banner into their shop. I´m planning to store the configuration of this banner (e.g. content, color, styles) in a metafield that is attached to the entire shop (in contrast to metafields that are connects to products or orders). Here are my questions: 

1. Is it possible to create this metafield once after app installation?

2. Is it possible to create this metafield via the GraphQl Api and, if yes, which mutation should i use for this? 

 

Thanks! 

Reply 1 (1)

Kevin_A
Shopify Staff
318 42 61

Hey @Jusch 

You could try adding a private metafield to the shop object using this mutation. 

Kevin_A | Solutions Engineer @ 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