MetafieldReference
The resource referenced by the metafield value.
Anchor to Possible typesPossible types
- •OBJECT
Represents a group of products that can be displayed in online stores and other sales channels in categories, which makes it easy for customers to find them. For example, an athletics store might create different collections for running attire, shoes, and accessories.
Collections can be defined by conditions, such as whether they match certain product tags. These are called smart or automated collections.
Collections can also be created for a custom group of products. These are called custom or manual collections.
- •OBJECT
Represents information about a company which is also a customer of the shop.
- •OBJECT
Represents information about a customer of the shop, such as the customer's contact details, their order history, and whether they've agreed to receive marketing material by email.
Caution: Only use this data if it's required for your app's functionality. Shopify will restrict access to scopes for apps that don't have a legitimate use for the associated data.
- •OBJECT
Represents any file other than HTML.
- •OBJECT
An image hosted on Shopify.
- •OBJECT
Provides an object instance represented by a MetaobjectDefinition.
- •OBJECT
Represents a Shopify hosted 3D model.
- •OBJECT
A page on the Online Store.
- •OBJECT
An order is a customer's request to purchase one or more products from a shop. You can retrieve and update orders using the
Order
object. Learn more about editing an existing order with the GraphQL Admin API.Only the last 60 days' worth of orders from a store are accessible from the
Order
object by default. If you want to access older orders, then you need to request access to all orders. If your app is granted access, then you can add thescope to your app along with
or
. Private apps are not affected by this change and are automatically granted the scope.
Caution: Only use this data if it's required for your app's functionality. Shopify will restrict access to scopes for apps that don't have a legitimate use for the associated data.
- •OBJECT
The
Product
object lets you manage products in a merchant’s store.Products are the goods and services that merchants offer to customers. They can include various details such as title, description, price, images, and options such as size or color. You can use product variants to create or update different versions of the same product. You can also add or update product media. Products can be organized by grouping them into a collection.
Learn more about working with Shopify's product model, including limitations and considerations.
- •OBJECT
Represents a product variant.
- •OBJECT
Represents a Shopify product taxonomy value.
- •OBJECT
Represents a Shopify hosted video.
Anchor to Fields with this unionFields with this union
- •OBJECT
Returns a reference object if the metafield definition's type is a resource reference.
- •CONNECTION
A list of reference objects if the metafield's type is a resource reference list.
- •CONNECTION
A list of nodes that are contained in MetafieldReferenceEdge. 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.
- •OBJECT
The item at the end of MetafieldReferenceEdge.
- •OBJECT
The referenced resource.
- •OBJECT
For resource reference fields, provides the referenced object.
- •CONNECTION
For resource reference list fields, provides the list of referenced objects.