Skip to main content
Anchor to MetaobjectUpsertPayload

MetaobjectUpsertPayload

payload

Return type for metaobjectUpsert mutation.

•Metaobject

The created or updated metaobject.

Show fields
•[MetaobjectUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Creates or updates a Metaobject based on its handle. If a metaobject with the specified handle exists, the mutation updates it with the provided field values. If no matching metaobject exists, the mutation creates a new one.

The handle serves as a unique identifier within a metaobject type. Field values map to the MetaobjectDefinition's field keys and overwrite existing values during updates.

Show payload

Arguments

•MetaobjectHandleInput!
required

The identifier of the metaobject to upsert.

Show input fields
•MetaobjectUpsertInput!
required

The parameters to upsert the metaobject.

Show input fields


Was this section helpful?