Discussing Shopify Functions development, deployment, and usage in Shopify apps.
Hi,
Now it's possible to read public product metafields in cart input
https://shopify.dev/api/functions/reference/product-discounts/graphql/common-objects/product
but not private metafields. Would you please add private metafields too?
There's no access limitation, since both the function and private metafields belong to same app.
Thanks
Solved! Go to the solution
This is an accepted solution.
Hi @markus12 -- Function input queries now support reserved namespaces, which make private metafields unnecessary.
Nick Wesselman | 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 the Shopify Help Center or the Shopify Blog
This is an accepted solution.
Hi @markus12 -- Function input queries now support reserved namespaces, which make private metafields unnecessary.
Nick Wesselman | 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 the Shopify Help Center or the Shopify Blog
Hello Nick.
How can i get two metafields of a product from input.graphql ?
Actually, I can get value of one field but i need to get two or more values of metafields. If it is possible, I need to know how is the structure of input.graphql.
I Attach my input.graphql