Metafield for Store

Jusch
New Member
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! 

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
267 34 45

Hey @Jusch 

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

Kevin_A | Developer Support @ 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

0 Likes