Skip to main content
object

Requires read_metaobjects access scope.

Provides an object instance represented by a MetaobjectDefinition.

Anchor to Fields and connectionsFields and connections

•MetaobjectCapabilityData!non-null

Metaobject capabilities for this Metaobject.

•App!non-null

The app used to create the object.

•App!non-null

The app used to create the object.

•StaffMember

The staff member who created the metaobject.

•MetaobjectDefinition!non-null

The MetaobjectDefinition that models this object type.

•String!non-null

The preferred display name field value of the metaobject.

•MetaobjectField

The field for an object key, or null if the key has no field definition.

•[MetaobjectField!]!non-null

All ordered fields of the metaobject with their definitions and values.

•String!non-null

The unique handle of the object, useful as a custom ID.

•ID!non-null

A globally-unique ID.

•MetafieldRelationConnection!non-null

List of back references metafields that belong to the resource.

•MetaobjectField

The recommended field to visually represent this metaobject. May be a file reference or color field.

•String!non-null

The type of the metaobject.

•DateTime!non-null

When the object was last updated.

•StaffMemberDeprecated

Was this section helpful?

•query

Retrieves a metaobject by ID.

•query

Retrieves a metaobject by handle.

•query

All metaobjects for the shop.


Was this section helpful?

•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

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.


Was this section helpful?

•interface

Was this section helpful?