# MetafieldStorefrontVisibility - admin-graphql - OBJECT Version: 2024-10 ## Description By default, the Storefront API can't read metafields. To make specific metafields visible in the Storefront API, you need to create a `MetafieldStorefrontVisibility` record. A `MetafieldStorefrontVisibility` record is a list of the metafields, defined by the `owner_type`, `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. ### Access Scopes ## Fields * [createdAt](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime! - The date and time when the metafield was set to visible in the Storefront API. * [id](/docs/api/admin-graphql/2024-10/scalars/ID): ID! - A globally-unique ID. * [key](/docs/api/admin-graphql/2024-10/scalars/String): String! - The key of a metafield to make visible in the Storefront API. * [legacyResourceId](/docs/api/admin-graphql/2024-10/scalars/UnsignedInt64): UnsignedInt64! - The ID of the corresponding resource in the REST Admin API. * [namespace](/docs/api/admin-graphql/2024-10/scalars/String): String! - The namespace of a metafield to make visible in the Storefront API. * [ownerType](/docs/api/admin-graphql/2024-10/enums/MetafieldOwnerType): MetafieldOwnerType! - The owner type of a metafield to make visible in the Storefront API. * [updatedAt](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime! - The date and time when the `MetafieldStorefrontVisilibty` record was updated. ## Connections ## Related queries * [metafieldStorefrontVisibility](/docs/api/admin-graphql/2024-10/queries/metafieldStorefrontVisibility) Returns a `MetafieldStorefrontVisibility` record by ID. A `MetafieldStorefrontVisibility` record lists the metafields to make visible in the Storefront API. * [metafieldStorefrontVisibilities](/docs/api/admin-graphql/2024-10/queries/metafieldStorefrontVisibilities) List of the `MetafieldStorefrontVisibility` records. ## Related mutations * [metafieldStorefrontVisibilityCreate](/docs/api/admin-graphql/2024-10/mutations/metafieldStorefrontVisibilityCreate) Creates a `MetafieldStorefrontVisibility` record to make all metafields that belong to the specified resource and have the established `namespace` and `key` combination visible in the Storefront API. ## Related Unions ## Examples