App-data metafields

An app-data metafield is a metafield that is tied to a particular app installation and can only be accessed by that app. App-data metafields can't be overwritten by other apps or by merchants, and can be accessed using GraphQL, similar to private metafields. Unlike private metafields, app-data metafields can be accessed using Liquid.

Using app-data metafields, you can provide different levels of features to merchants depending on their app payment plan by using app-data metafields and conditional app blocks. You can also store a client ID or client secret in app-data metafields.

This guide shows you how to create an app-data metafield using the GraphQL Admin API.