MetafieldStorefrontVisibility
By default, the Storefront API can't read metafields. To make specific metafields visible in the Storefront API,
you need to create a record. A
record is a list
of the metafields, defined by the
,
namespace
, and key
, to make visible in the Storefront API.
Learn about [exposing metafields in the Storefront API] (https://shopify.dev/custom-storefronts/products-collections/metafields) for more details.
Anchor to FieldsFields
- Anchor to createdAtcreated•
At DateTime! non-null The date and time when the metafield was set to visible in the Storefront API.
- •ID!non-null
A globally-unique ID.
- •String!non-null
The key of a metafield to make visible in the Storefront API.
- Anchor to legacyResourceIdlegacy•
Resource Id UnsignedInt64! non-null The ID of the corresponding resource in the REST Admin API.
- Anchor to namespacenamespace•String!non-null
The namespace of a metafield to make visible in the Storefront API.
- Anchor to ownerTypeowner•
Type MetafieldOwner non-nullType! The owner type of a metafield to make visible in the Storefront API.
- Anchor to updatedAtupdated•
At DateTime! non-null The date and time when the
record was updated.
Map
Fields and connections with this object
MetafieldStorefrontVisibility Queries
Anchor to MutationsMutations
- •mutationDeprecated
Creates a
record to make all metafields that belong to the specified resource and have the established
namespace
andkey
combination visible in the Storefront API. This mutation will be removed in a future version. Use theor
mutations with
access.storefront
set instead.