GitHub

ShopifyMetaobject

interface

import { ShopifyMetaobject } from '@daffodil/driver/shopify'

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

interface ShopifyMetaobject {
  __typename: "Metaobject"
  field: ShopifyMetaobjectField
  fields: ShopifyMetaobjectField[]
  handle: string
  id: string
  onlineStoreUrl: Maybe<Scalars['URL']['output']>
  seo: ShopifyMetaobjectSeo
  type: string
  updatedAt: Scalars['DateTime']['output']
}

Properties

__typename
"Metaobject"
field
ShopifyMetaobjectField

Accesses a field of the object by key.

fields
ShopifyMetaobjectField[]

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

handle
string

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

id
string

A globally-unique ID.

onlineStoreUrl
Maybe<Scalars['URL']['output']>

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.

seo
ShopifyMetaobjectSeo

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

type
string

The type of the metaobject. Defines the namespace of its associated metafields.

updatedAt
Scalars['DateTime']['output']

The date and time when the metaobject was last updated.