Anchor to metafieldDefinitionCreatemetafield
mutationmetafield Definition Create
Requires API client to have access to the namespace and the resource type associated with the metafield definition.
Creates a metafield definition. Any metafields existing under the same owner type, namespace, and key will be checked against this definition and will have their type updated accordingly. For metafields that are not valid, they will remain unchanged but any attempts to update them must align with this definition.
Anchor to Arguments
Arguments
- Anchor to definitiondefinition•Metafield
Definition Input!required Specifies the input fields for a metafield definition.
Was this section helpful?
- Anchor to createdDefinitioncreated•Metafield
Definition Definition The metafield definition that was created.
- Anchor to userErrorsuser•[Metafield
Errors Definition Create User Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?