Query Root
The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start.
Anchor to FieldsFields
- Anchor to articlearticle•Article
Fetch a specific Article by its ID.
- •ID!required
The ID of the
Article.
Arguments
- •ID!
- Anchor to articlesarticles•Article
Connection! non-null List of the shop's articles.
- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Article
Key Sort Keys Default:ID Sort the underlying list by the given key.
- Anchor to queryquery•String
Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.
Arguments
- Anchor to blogblog•Blog
Fetch a specific
Blogby one of its unique attributes.- Anchor to handlehandle•String
The handle of the
Blog.- •ID
The ID of the
Blog.
Arguments
- Anchor to blogsblogs•Blog
Connection! non-null List of the shop's blogs.
- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Blog
Key Sort Keys Default:ID Sort the underlying list by the given key.
- Anchor to queryquery•String
Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.
Arguments
- Anchor to cartcart•Cart
Retrieve a cart by its ID. For more information, refer to Manage a cart with the Storefront API.
- •ID!required
The ID of the cart.
Arguments
- •ID!
- Anchor to collectioncollection•Collection
Fetch a specific
Collectionby one of its unique attributes.- •ID
The ID of the
Collection.- Anchor to handlehandle•String
The handle of the
Collection.
Arguments
- Anchor to collectionscollections•Collection
Connection! non-null List of the shop’s collections.
- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Collection
Key Sort Keys Default:ID Sort the underlying list by the given key.
- Anchor to queryquery•String
Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.
Arguments
- Anchor to customercustomer•CustomerToken access required
The customer associated with the given access token. Tokens are obtained by using the
mutation.- Anchor to customerAccessTokencustomer•String!
Access Token required The customer access token.
Arguments
- Anchor to localizationlocalization•Localization!non-null
Returns the localized experiences configured for the shop.
- Anchor to locationslocations•Location
Connection! non-null List of the shop's locations that support in-store pickup.
When sorting by distance, you must specify a location via the
nearargument.- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Location
Key Sort Keys Default:ID Sort the underlying list by the given key.
- Anchor to nearnear•Geo
Coordinate Input Used to sort results based on proximity to the provided location.
Arguments
- •MenuToken access required
Retrieve a navigation menu by its handle.
- •String!required
The navigation menu's handle.
Arguments
- •String!
- Anchor to metaobjectmetaobject•MetaobjectToken access required
Fetch a specific Metaobject by one of its unique identifiers.
- •ID
The ID of the metaobject.
- Anchor to handlehandle•Metaobject
Handle Input The handle and type of the metaobject.
Arguments
- Anchor to metaobjectsmetaobjects•Metaobject
Connection! non-null Token access required All active metaobjects for the shop.
- Anchor to typetype•String!required
The type of metaobject to retrieve.
- Anchor to sortKeysort•String
Key The key of a field to sort with. Supports "id" and "updated_at".
- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to nodenode•Node
Returns a specific node by ID.
- •ID!required
The ID of the Node to return.
Arguments
- •ID!
- Anchor to nodesnodes•[Node]!non-null
Returns the list of nodes with the given IDs.
- •[ID!]!required
The IDs of the Nodes to return.
The input must not contain more than
250values.
Arguments
- •[ID!]!
- Anchor to pagepage•Page
Fetch a specific
Pageby one of its unique attributes.- Anchor to handlehandle•String
The handle of the
Page.- •ID
The ID of the
Page.
Arguments
- Anchor to pagespages•Page
Connection! non-null List of the shop's pages.
- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Page
Key Sort Keys Default:ID Sort the underlying list by the given key.
- Anchor to queryquery•String
Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.
Arguments
- Anchor to paymentSettingspayment•Payment
Settings Settings! non-null Settings related to payments.
- Anchor to predictiveSearchpredictive•Predictive
Search Search Result List of the predictive search results.
- Anchor to limitlimit•Int
Limits the number of results based on
. The value can range from 1 to 10, and the default is 10.- Anchor to limitScopelimit•Predictive
Scope Search Limit Scope Decides the distribution of results.
- Anchor to queryquery•String!required
The search query.
- Anchor to searchableFieldssearchable•[Searchable
Fields Field!] 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
250values.- Anchor to typestypes•[Predictive
Search Type!] The types of resources to search for.
The input must not contain more than
250values.- •Search
Unavailable Products Type Specifies how unavailable products are displayed in the search results.
Arguments
- Anchor to productproduct•Product
Fetch a specific
Productby one of its unique attributes.- •ID
The ID of the
Product.- Anchor to handlehandle•String
The handle of the
Product.
Arguments
- Anchor to productRecommendationsproduct•[Product!]
Recommendations Find recommended products related to a given
. To learn more about how recommendations are generated, see Showing product recommendations on product pages.- Anchor to productIdproduct•ID
Id The id of the product.
- Anchor to productHandleproduct•String
Handle The handle of the product.
- Anchor to intentintent•Product
Recommendation Intent 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.
Arguments
- Anchor to productsproducts•Product
Connection! non-null Returns a list of the shop's products. For storefront search, use the
searchquery.- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Product
Key Sort Keys Default:ID Sort the underlying list by the given key.
- Anchor to queryquery•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.
created_at:>'2020-10-21T23:39:20Z'created_at:<nowcreated_at:<=2024- Anchor to product_type•
Filter by a comma-separated list of product types.
product_type:snowboard- Anchor to tag_not•
Filter by products that don't have the specified product tags.
tag_not:my_tag- Anchor to updated_at•
Filter by the date and time when the product was last updated.
updated_at:>'2020-10-21T23:39:20Z'updated_at:<nowupdated_at:<=2024- Anchor to variants.price•
Filter by the price of the product's variants.
Example:
Example:
Example:
Example:
Arguments
- Anchor to productTagsproduct•String
Tags Connection! non-null Token access required Tags added to products. Additional access scope required: unauthenticated_read_product_tags.
- Anchor to firstfirst•Int!required
Returns up to the first
nelements from the list.
Arguments
- Anchor to productTypesproduct•String
Types Connection! non-null List of product types for the shop's products that are published to your app.
- Anchor to firstfirst•Int!required
Returns up to the first
nelements from the list.
Arguments
- Anchor to publicApiVersionspublic•[Api
Api Versions Version!]! non-null The list of public Storefront API versions, including supported, release candidate and unstable versions.
- Anchor to searchsearch•Search
Result Item Connection! non-null List of the search results.
- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Search
Key Sort Keys Default:RELEVANCE Sort the underlying list by the given key.
- Anchor to queryquery•String!required
The search query.
- Anchor to prefixprefix•Search
Prefix Query Type Specifies whether to perform a partial word match on the last search term.
- Anchor to productFiltersproduct•[Product
Filters Filter!] Returns a subset of products matching all product filters.
The input must not contain more than
250values.- Anchor to typestypes•[Search
Type!] The types of resources to search for.
The input must not contain more than
250values.- •Search
Unavailable Products Type Specifies how unavailable products or variants are displayed in the search results.
Arguments
- Anchor to shopshop•Shop!non-null
The shop associated with the storefront access token.
- Anchor to sitemapsitemap•Sitemap!non-null
Contains all fields required to generate sitemaps.
- Anchor to typetype•Sitemap
Type! required The type of the resource for the sitemap.
Arguments
- Anchor to urlRedirectsurl•Url
Redirects Redirect Connection! non-null A list of redirects for a shop.
- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to queryquery•String
Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.
Arguments
Deprecated fields
- Anchor to blogByHandleblog•Blog
By Handle Deprecated - Anchor to handlehandle•String!required
The handle of the blog.
Arguments
- Anchor to collectionByHandlecollection•Collection
By Handle Deprecated - Anchor to handlehandle•String!required
The handle of the collection.
Arguments
- Anchor to pageByHandlepage•Page
By Handle Deprecated - Anchor to handlehandle•String!required
The handle of the page.
Arguments
- Anchor to productByHandleproduct•Product
By Handle Deprecated - Anchor to handlehandle•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.
Arguments