Tags:
- Admin GraphQL API
- 2024-07
Updates to metafield access controls
It is now possible for apps to view the access field of metafield definitions they have access to but do not own. An error was previously returned when accessing the field for definitions the app didn't have permissions to manage. Note that accessing the access.grants field still requires permissions to manage the definition and an error will be returned if accessing the field with insufficient permissions.
As of 2024-07, the admin and storefront fields of will also start returning values in more cases instead of null. Metafields that do not have associated access grants will return for admin access and for storefront. In addition, definitions that were created with a storefront access of will start returning instead of null. Finally, it will also now be possible to set as the admin access control.
Learn more about access controls for metafields on Shopify.dev.