Skip to main content
object

The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start.

Article

Fetch a specific Article by its ID.

Arguments

ID!
required

The ID of the Article.


ArticleConnection!
non-null

List of the shop's articles.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

ArticleSortKeys
Default:ID

Sort the underlying list by the given key.

String

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

Anchor to blog_title
Anchor to created_at
Anchor to tag_not
Anchor to updated_at

Blog

Fetch a specific Blog by one of its unique attributes.

Arguments

String

The handle of the Blog.

ID

The ID of the Blog.


BlogConnection!
non-null

List of the shop's blogs.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

BlogSortKeys
Default:ID

Sort the underlying list by the given key.

String

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

Anchor to created_at
Anchor to updated_at

Cart

Retrieve a cart by its ID. For more information, refer to Manage a cart with the Storefront API.

Arguments

ID!
required

The ID of the cart.


Collection

Fetch a specific Collection by one of its unique attributes.

Arguments

ID

The ID of the Collection.

String

The handle of the Collection.


CollectionConnection!
non-null

List of the shop’s collections.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

CollectionSortKeys
Default:ID

Sort the underlying list by the given key.

String

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

Anchor to collection_type
Anchor to updated_at

Customer

The customer associated with the given access token. Tokens are obtained by using the customerAccessTokenCreate mutation.

Arguments

String!
required

The customer access token.


Localization!
non-null

Returns the localized experiences configured for the shop.

LocationConnection!
non-null

List of the shop's locations that support in-store pickup.

When sorting by distance, you must specify a location via the near argument.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

LocationSortKeys
Default:ID

Sort the underlying list by the given key.

GeoCoordinateInput

Used to sort results based on proximity to the provided location.


Menu

Retrieve a navigation menu by its handle.

Arguments

String!
required

The navigation menu's handle.


Metaobject

Fetch a specific Metaobject by one of its unique identifiers.

Arguments

ID

The ID of the metaobject.

MetaobjectHandleInput

The handle and type of the metaobject.


MetaobjectConnection!
non-null

All active metaobjects for the shop.

Arguments

String!
required

The type of metaobject to retrieve.

String

The key of a field to sort with. Supports "id" and "updated_at".

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


Node

Returns a specific node by ID.

Arguments

ID!
required

The ID of the Node to return.


[Node]!
non-null

Returns the list of nodes with the given IDs.

Arguments

[ID!]!
required

The IDs of the Nodes to return.

The input must not contain more than 250 values.


Page

Fetch a specific Page by one of its unique attributes.

Arguments

String

The handle of the Page.

ID

The ID of the Page.


PageConnection!
non-null

List of the shop's pages.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

PageSortKeys
Default:ID

Sort the underlying list by the given key.

String

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

Anchor to created_at
Anchor to updated_at

PaymentSettings!
non-null

Settings related to payments.

PredictiveSearchResult

List of the predictive search results.

Arguments

Int

Limits the number of results based on limit_scope. The value can range from 1 to 10, and the default is 10.

PredictiveSearchLimitScope

Decides the distribution of results.

String!
required

The search query.

[SearchableField!]

Specifies the list of resource fields to use for search. The default fields searched on are TITLE, PRODUCT_TYPE, VARIANT_TITLE, and VENDOR. For the best search experience, you should search on the default field set.

The input must not contain more than 250 values.

[PredictiveSearchType!]

The types of resources to search for.

The input must not contain more than 250 values.

SearchUnavailableProductsType

Specifies how unavailable products are displayed in the search results.


Product

Fetch a specific Product by one of its unique attributes.

Arguments

ID

The ID of the Product.

String

The handle of the Product.


Anchor to productRecommendationsproductRecommendations
[Product!]

Find recommended products related to a given product_id. To learn more about how recommendations are generated, see Showing product recommendations on product pages.

Arguments

ID

The id of the product.

String

The handle of the product.

ProductRecommendationIntent
Default:RELATED

The recommendation intent that is used to generate product recommendations. You can use intent to generate product recommendations on various pages across the channels, according to different strategies.


ProductConnection!
non-null

Returns a list of the shop's products. For storefront search, use the search query.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

ProductSortKeys
Default:ID

Sort the underlying list by the given key.

String

You can apply one or multiple filters to a query. Learn more about Shopify API search syntax.

Anchor to available_for_sale

Filter by products that have at least one product variant available for sale.

Anchor to created_at

Filter by the date and time when the product was created.

Example:

  • created_at:>'2020-10-21T23:39:20Z'
  • created_at:<now
  • created_at:<=2024
Anchor to product_type

Filter by a comma-separated list of product types.

Example:

  • product_type:snowboard

Filter products by the product tags field.

Example:

  • tag:my_tag
Anchor to tag_not

Filter by products that don't have the specified product tags.

Example:

  • tag_not:my_tag

Filter by the product title field.

Example:

  • title:The Minimal Snowboard
Anchor to updated_at

Filter by the date and time when the product was last updated.

Example:

  • updated_at:>'2020-10-21T23:39:20Z'
  • updated_at:<now
  • updated_at:<=2024
Anchor to variants.price

Filter by the price of the product's variants.

Filter by the product vendor field.

Example:

  • vendor:Snowdevil
  • vendor:Snowdevil OR vendor:Icedevil

StringConnection!
non-null

Tags added to products. Additional access scope required: unauthenticated_read_product_tags.

Arguments

Int!
required

Returns up to the first n elements from the list.


StringConnection!
non-null

List of product types for the shop's products that are published to your app.

Arguments

Int!
required

Returns up to the first n elements from the list.


[ApiVersion!]!
non-null

The list of public Storefront API versions, including supported, release candidate and unstable versions.

SearchResultItemConnection!
non-null

List of the search results.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

SearchSortKeys
Default:RELEVANCE

Sort the underlying list by the given key.

String!
required

The search query.

SearchPrefixQueryType

Specifies whether to perform a partial word match on the last search term.

[ProductFilter!]

Returns a subset of products matching all product filters.

The input must not contain more than 250 values.

[SearchType!]

The types of resources to search for.

The input must not contain more than 250 values.

SearchUnavailableProductsType

Specifies how unavailable products or variants are displayed in the search results.


Shop!
non-null

The shop associated with the storefront access token.

Sitemap!
non-null

Contains all fields required to generate sitemaps.

Arguments

SitemapType!
required

The type of the resource for the sitemap.


UrlRedirectConnection!
non-null

A list of redirects for a shop.

Arguments

Int

Returns up to the first n elements from the list.

String

Returns the elements that come after the specified cursor.

Int

Returns up to the last n elements from the list.

String

Returns the elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

String

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

Anchor to created_at

Deprecated fields

Blog
Deprecated

Arguments

String!
required

The handle of the blog.


Collection
Deprecated

Arguments

String!
required

The handle of the collection.


Page
Deprecated

Arguments

String!
required

The handle of the page.


Product
Deprecated

Arguments

String!
required

A unique, human-readable string of the product's title. A handle can contain letters, hyphens (-), and numbers, but no spaces. The handle is used in the online store URL for the product.



Was this section helpful?