Skip to main content
Anchor to MetaobjectDefinition

MetaobjectDefinition

object

Requires read_metaobject_definitions access scope.

Provides the definition of a generic object structure composed of metafields.

Anchor to Fields and connectionsFields and connections

•MetaobjectAccess!non-null

Access configuration for the metaobject definition.

•MetaobjectCapabilities!non-null

The capabilities of the metaobject definition.

•App!non-null

The app used to create the metaobject definition.

•StaffMember

The staff member who created the metaobject definition.

•String

The administrative description.

•String

The key of a field to reference as the display name for each object.

•[MetaobjectFieldDefinition!]!non-null

The fields defined for this object type.

•Boolean!non-null

Whether this metaobject definition has field whose type can visually represent a metaobject with the thumbnailField.

•ID!non-null

A globally-unique ID.

•MetaobjectConnection!non-null

A paginated connection to the metaobjects associated with the definition.

•Int!non-null

The count of metaobjects created for the definition.

•String!non-null

The human-readable name.

•String!non-null

The type of the object definition. Defines the namespace of associated metafields.


Was this section helpful?

•query

Retrieves a metaobject definition by ID.

•query

Finds a metaobject definition by type.

•query

All metaobject definitions.


Was this section helpful?

•mutation

Creates a new metaobject definition.

Arguments

•MetaobjectDefinitionCreateInput!required

The input fields for creating a metaobject definition.


Fields

Anchor to metaobjectDefinitionmetaobjectDefinition
•MetaobjectDefinition

The created metaobject definition.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates a metaobject definition with new settings and metafield definitions.

Arguments

•MetaobjectDefinitionUpdateInput!required

The input fields for updating a metaobject definition.

•ID!required

The ID of the metaobject definition to update.


Fields

Anchor to metaobjectDefinitionmetaobjectDefinition
•MetaobjectDefinition

The updated metaobject definition.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Enables the specified standard metaobject definition from its template.

Arguments

•String!required

The type of the metaobject definition to enable.


Fields

Anchor to metaobjectDefinitionmetaobjectDefinition
•MetaobjectDefinition

The metaobject definition that was enabled using the standard template.

•[MetaobjectUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

•interface

Was this section helpful?