Skip to main content
object

Defines errors encountered while managing metaobject resources.

•MetaobjectUserErrorCode

The error code.

•Int

The index of the failing list element in an array.

•String

The key of the failing object element.

•[String!]

The path to the input field that caused the error.

•String!non-null

The error message.


Was this section helpful?

•mutation

Asynchronously delete metaobjects and their associated metafields in bulk.

Arguments

•MetaobjectBulkDeleteWhereCondition!required

Specifies the condition by which metaobjects are deleted. Exactly one field of input is required.


Fields

•Job

The asynchronous job that deletes the metaobjects.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates a new metaobject.

Arguments

•MetaobjectCreateInput!required

The parameters for the metaobject to create.


Fields

•Metaobject

The created metaobject.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates a new metaobject definition.

Arguments

•MetaobjectDefinitionCreateInput!required

The input fields for creating a metaobject definition.


Fields

Anchor to metaobjectDefinitionmetaobjectDefinition
•MetaobjectDefinition

The created metaobject definition.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes the specified metaobject definition. Also deletes all related metafield definitions, metaobjects, and metafields asynchronously.

Arguments

•ID!required

The ID of the metaobjects definition to delete.


Fields

•ID

The ID of the deleted metaobjects definition.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates a metaobject definition with new settings and metafield definitions.

Arguments

•MetaobjectDefinitionUpdateInput!required

The input fields for updating a metaobject definition.

•ID!required

The ID of the metaobject definition to update.


Fields

Anchor to metaobjectDefinitionmetaobjectDefinition
•MetaobjectDefinition

The updated metaobject definition.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes the specified metaobject and its associated metafields.

Arguments

•ID!required

The ID of the metaobject to delete.


Fields

•ID

The ID of the deleted metaobject.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates an existing metaobject.

Arguments

•ID!required

The ID of the metaobject to update.

•MetaobjectUpdateInput!required

Specifies parameters to update on the metaobject.


Fields

•Metaobject

The updated metaobject.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Retrieves a metaobject by handle, then updates it with the provided input values. If no matching metaobject is found, a new metaobject is created with the provided input values.

Arguments

•MetaobjectHandleInput!required

The identifier of the metaobject to upsert.

•MetaobjectUpsertInput!required

The parameters to upsert the metaobject.


Fields

•Metaobject

The created or updated metaobject.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Enables the specified standard metaobject definition from its template.

Arguments

•String!required

The type of the metaobject definition to enable.


Fields

Anchor to metaobjectDefinitionmetaobjectDefinition
•MetaobjectDefinition

The metaobject definition that was enabled using the standard template.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?