Anchor to metafieldStorefrontVisibilityCreatemetafield
metafieldStorefrontVisibilityCreate
mutationDeprecated
Requires API client to have access to the owner type and namespace.
Creates a record to make all metafields that belong to the specified resource
and have the established
namespace
and key
combination visible in the Storefront API. This mutation will be removed in a future version. Use the or
mutations with
access.storefront
set instead.
Anchor to Arguments
Arguments
- Anchor to inputinput•
Specifies the input fields for a
record.
Was this section helpful?
Anchor to MetafieldStorefrontVisibilityCreatePayload returnsMetafieldStorefrontVisibilityCreatePayload returns
- Anchor to metafieldStorefrontVisibilitymetafield•
Storefront Visibility The
that was created.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation metafieldStorefrontVisibilityCreate($input: MetafieldStorefrontVisibilityInput!) {
metafieldStorefrontVisibilityCreate(input: $input) {
metafieldStorefrontVisibility {
# MetafieldStorefrontVisibility fields
}
userErrors {
field
message
}
}
}
Input
{
"input": {
"key": "<your-key>",
"namespace": "<your-namespace>",
"ownerType": ""
}
}
{
"input": {
"key": "<your-key>",
"namespace": "<your-namespace>",
"ownerType": ""
}
}
input MetafieldStorefrontVisibilityInput {
key: String!
namespace: String
ownerType: MetafieldOwnerType!
}