Skip to main content
query

Requires read_metaobjects access scope.

All metaobjects for the shop.

Anchor to Arguments

MetaobjectConnection arguments

•MetaobjectConnection!
•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to display_name
•string
Anchor to fields.{key}
•mixed

Filters metaobject entries by field value. Format: fields.{key}:{value}. Only fields marked as filterable in the metaobject definition can be used. Learn more about querying metaobjects by field value.

Example:

  • fields.color:blue
  • fields.on_sale:true
•string
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to updated_at
•time
•Boolean
Default:false

Reverse the order of the underlying list.

•String

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

•String!
required

The type of the metaobjects to query.


Was this section helpful?

•[MetaobjectEdge!]!
non-null

The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.

•[Metaobject!]!
non-null

A list of nodes that are contained in MetaobjectEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.

•PageInfo!
non-null

An object that’s used to retrieve cursor information about the current page.


Was this section helpful?