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.

Arguments

•MetaobjectHandleInput!
required

The identifier of the metaobject to upsert.

•MetaobjectUpsertInput

The parameters to upsert the metaobject. Only the fields you provide are updated. Cannot be used in conjunction with values.

•JSON

The values of the metaobject as a JSON object keyed by field definition key. This is a full replacement — omitted keys are cleared on an existing record. Cannot be used in conjunction with metaobject.



Was this section helpful?