Skip to main content
object

Requires unauthenticated_read_metaobjects access scope.

An instance of a user-defined model based on a MetaobjectDefinition.

•MetaobjectField

Accesses a field of the object by key.

Arguments

•String!
required

The key of the field.


•[MetaobjectField!]!
non-null

All object fields with defined values. Omitted object keys can be assumed null, and no guarantees are made about field order.

•String!
non-null

The unique handle of the metaobject. Useful as a custom ID.

•ID!
non-null

A globally-unique ID.

•URL

The URL used for viewing the metaobject on the shop's Online Store. Returns null if the metaobject definition doesn't have the online_store capability.

•MetaobjectSEO

The metaobject's SEO information. Returns null if the metaobject definition doesn't have the renderable capability.

•String!
non-null

The type of the metaobject.

•DateTime!
non-null

The date and time when the metaobject was last updated.


Was this section helpful?

•query

Fetch a specific Metaobject by one of its unique identifiers.

Arguments

•ID

The ID of the metaobject.

•MetaobjectHandleInput

The handle and type of the metaobject.


•query

All active metaobjects for the shop.

Arguments

•String!
required

The type of metaobject to retrieve.

•String

The key of a field to sort with. Supports "id" and "updated_at".

•Int

Returns up to the first n elements from the list.

•String

Returns the elements that come after the specified cursor.

•Int

Returns up to the last n elements from the list.

•String

Returns the elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.



Was this section helpful?


Was this section helpful?