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.
Main issue: Whether metafields created with reserved prefixes can be fetched via the GraphQL privateMetafields query without fetching the parent resource.
Key clarification:
What to use instead:
Outcome: The question is resolved. Use privateMetafields only for true Private Metafields; use the metafield query for reserved-prefix regular metafields. Links to official docs were provided for both concepts.
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.
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.