Metaobject
Requires access scope.
An instance of a user-defined model based on a MetaobjectDefinition.
Anchor to FieldsFields
- Anchor to fieldfield•
Accesses a field of the object by key.
- Anchor to fieldsfields•[Metaobject
Field!]!non-null All object fields with defined values. Omitted object keys can be assumed null, and no guarantees are made about field order.
- Anchor to handlehandle•String!non-null
The unique handle of the metaobject. Useful as a custom ID.
- •ID!non-null
A globally-unique ID.
- Anchor to onlineStoreUrlonline•
Store Url The URL used for viewing the metaobject on the shop's Online Store. Returns
null
if the metaobject definition doesn't have thecapability.
- •
The metaobject's SEO information. Returns
null
if the metaobject definition doesn't have therenderable
capability.- Anchor to typetype•String!non-null
The type of the metaobject. Defines the namespace of its associated metafields.
- Anchor to updatedAtupdated•
At DateTime!non-null The date and time when the metaobject was last updated.
Anchor to QueriesQueries
- •query
Fetch a specific Metaobject by one of its unique identifiers.
- •query
All active metaobjects for the shop.