metaobject
Requires access scope.
Fetch a specific Metaobject by one of its unique identifiers.
Arguments
- Anchor to handlehandle•Metaobject
Handle Input The handle and type of the metaobject.
- •ID
The ID of the metaobject.
Anchor to Possible returnsPossible returns
- Anchor to MetaobjectMetaobject•Metaobject
An instance of a user-defined model based on a MetaobjectDefinition.
- Anchor to fieldfield•Metaobject
Field Token access required Accesses a field of the object by key.
- •String!required
The key of the field.
Arguments
- •String!
- Anchor to fieldsfields•[Metaobject
Field!]! non-null Token access required 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 Token access required
The unique handle of the metaobject. Useful as a custom ID.
- •ID!non-null Token access required
A globally-unique ID.
- Anchor to onlineStoreUrlonline•URL
Store Url Token access required The URL used for viewing the metaobject on the shop's Online Store. Returns
nullif the metaobject definition doesn't have thecapability.- •Metaobject
SEO Token access required The metaobject's SEO information. Returns
nullif the metaobject definition doesn't have therenderablecapability.- Anchor to typetype•String!non-null Token access required
The type of the metaobject.
- Anchor to updatedAtupdated•Date
At Time! non-null Token access required The date and time when the metaobject was last updated.