Metafield Definition Create Payload
Return type for mutation.
Anchor to FieldsFields
- createdDefinition (MetafieldDefinition)
- userErrors ([MetafieldDefinitionCreateUserError!]!)
- 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.
Anchor to Mutations with this payloadMutations with this payload
- metafieldDefinitionCreate (MetafieldDefinitionCreatePayload)
- •mutation
Creates a
that establishes structure and validation rules for metafields. The definition specifies the data type, validation constraints, and access permissions for metafields with a given namespace and key combination.When you create a new definition, the system validates any existing unstructured metafields matching the same owner type, namespace, and key against it. The system updates each valid metafield's type to match the definition. Invalid metafields remain unchanged but must conform to the definition when updated.
Learn more about creating metafield definitions.
- Anchor to definitiondefinition•Metafield
Definition Input! required Specifies the input fields for a metafield definition.
Arguments