A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello, if I create private metafields with reserved prefixes can I request them with the query privateMetafields ?
I only want to get metafields, I don't want to get the resource.
Solved! Go to the solution
This is an accepted solution.
Hi there, private metafields as documented here are a different kind of entity from regular metafields that use a reserved prefix (and are therefore private to the owning app). If you are using the latter, then you can't query them with privateMetafields, they are regular metafields and you can query them by id with the metafield query.
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi there, private metafields as documented here are a different kind of entity from regular metafields that use a reserved prefix (and are therefore private to the owning app). If you are using the latter, then you can't query them with privateMetafields, they are regular metafields and you can query them by id with the metafield query.
To learn more visit the Shopify Help Center or the Community Blog.