Skip to main content
Anchor to MetaobjectUpsertPayload

MetaobjectUpsertPayload

payload

Return type for metaobjectUpsert mutation.

•Metaobject

The created or updated metaobject.

•[MetaobjectUserError!]!
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

•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.


Was this section helpful?