Metaobject
Requires access scope.
Provides an object instance represented by a MetaobjectDefinition.
Anchor to Fields and connectionsFields and connections
- Anchor to capabilitiescapabilities•Metaobject
Capability non-nullData! Metaobject capabilities for this Metaobject.
- Anchor to createdBycreated•
By App!non-null The app used to create the object.
- Anchor to createdByAppcreated•
By App App!non-null The app used to create the object.
- Anchor to createdByStaffcreated•
By Staff The staff member who created the metaobject.
- Anchor to definitiondefinition•Metaobject
Definition! non-null The MetaobjectDefinition that models this object type.
- Anchor to displayNamedisplay•
Name String!non-null The preferred display name field value of the metaobject.
- Anchor to fieldfield•
The field for an object key, or null if the key has no field definition.
- Anchor to fieldsfields•[Metaobject
Field!]! non-null All ordered fields of the metaobject with their definitions and values.
- Anchor to handlehandle•String!non-null
The unique handle of the object, useful as a custom ID.
- •ID!non-null
A globally-unique ID.
- Anchor to referencedByreferenced•
By MetafieldRelation non-nullConnection! List of back references metafields that belong to the resource.
- Anchor to thumbnailFieldthumbnail•
Field The recommended field to visually represent this metaobject. May be a file reference or color field.
- Anchor to typetype•String!non-null
The type of the metaobject.
- Anchor to updatedAtupdated•
At DateTime! non-null When the object was last updated.
- Anchor to staffMemberstaff•
Member StaffMember Deprecated The staff member who created the metaobject. Use
instead.
Map
Fields and connections with this object
Possible type in
Anchor to QueriesQueries
- •query
Retrieves a metaobject by ID.
- •query
Retrieves a metaobject by handle.
- •query
All metaobjects for the shop.
Metaobject Queries
Queried by
Anchor to MutationsMutations
- •mutation
Creates a new metaobject.
- •mutation
Updates an existing metaobject.
- •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.