Anchor to MetaobjectDefinitionCreatePayloadMetaobject
payloadMetaobject Definition Create Payload
Return type for mutation.
Anchor to FieldsFields
- metaobjectDefinition (MetaobjectDefinition)
- userErrors ([MetaobjectUserError!]!)
- Anchor to metaobjectDefinitionmetaobject•Metaobject
Definition Definition The created metaobject definition.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Anchor to Mutations with this payloadMutations with this payload
- metaobjectDefinitionCreate (MetaobjectDefinitionCreatePayload)
- •mutation
Creates a metaobject definition that establishes the structure for custom data objects in your store. The definition specifies the fields, data types, and access permissions that all
Metaobjectentries of this type share.Use the
typefield to create a unique namespace for your metaobjects. Prefix the type with$app:to reserve the definition for your app's exclusive use. The definition can include capabilities like publishable status or translation eligibility, to extend how metaobjects integrate with Shopify's features.Learn more about managing metaobjects.
- Anchor to definitiondefinition•Metaobject
Definition Create Input! required The input fields for creating a metaobject definition.
Arguments
Was this section helpful?