Metaobject User Error
Defines errors encountered while managing metaobject resources.
Anchor to FieldsFields
- Anchor to codecode•Metaobject
User Error Code The error code.
- Anchor to elementIndexelement•Int
Index The index of the failing list element in an array.
- Anchor to elementKeyelement•String
Key The key of the failing object element.
- Anchor to fieldfield•[String!]
The path to the input field that caused the error.
- Anchor to messagemessage•String!non-null
The error message.
Anchor to MutationsMutations
- •mutation
Asynchronously delete metaobjects and their associated metafields in bulk.
- Anchor to wherewhere•Metaobject
Bulk Delete Where Condition!required Specifies the condition by which metaobjects are deleted. Exactly one field of input is required.
Arguments
- •Job
The asynchronous job that deletes the metaobjects.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Creates a new metaobject.
- Anchor to metaobjectmetaobject•Metaobject
Create Input!required The parameters for the metaobject to create.
Arguments
- Anchor to metaobjectmetaobject•Metaobject
The created metaobject.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Creates a new metaobject definition.
- Anchor to definitiondefinition•Metaobject
Definition Create Input!required The input fields for creating a metaobject definition.
Arguments
- 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.
Fields
- •mutation
Deletes the specified metaobject definition. Also deletes all related metafield definitions, metaobjects, and metafields asynchronously.
- •ID!required
The ID of the metaobjects definition to delete.
Arguments
- Anchor to deletedIddeleted•ID
Id The ID of the deleted metaobjects definition.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a metaobject definition with new settings and metafield definitions.
- Anchor to definitiondefinition•Metaobject
Definition Update Input!required The input fields for updating a metaobject definition.
- •ID!required
The ID of the metaobject definition to update.
Arguments
- Anchor to metaobjectDefinitionmetaobject•Metaobject
Definition Definition The updated metaobject definition.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Deletes the specified metaobject and its associated metafields.
- •ID!required
The ID of the metaobject to delete.
Arguments
- Anchor to deletedIddeleted•ID
Id The ID of the deleted metaobject.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates an existing metaobject.
- •ID!required
The ID of the metaobject to update.
- Anchor to metaobjectmetaobject•Metaobject
Update Input!required Specifies parameters to update on the metaobject.
Arguments
- Anchor to metaobjectmetaobject•Metaobject
The updated metaobject.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •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.
- Anchor to handlehandle•Metaobject
Handle Input!required The identifier of the metaobject to upsert.
- Anchor to metaobjectmetaobject•Metaobject
Upsert Input!required The parameters to upsert the metaobject.
Arguments
- Anchor to metaobjectmetaobject•Metaobject
The created or updated metaobject.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Enables the specified standard metaobject definition from its template.
- Anchor to typetype•String!required
The type of the metaobject definition to enable.
Arguments
- Anchor to metaobjectDefinitionmetaobject•Metaobject
Definition Definition The metaobject definition that was enabled using the standard template.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields