import { ShopifyQueryRoot } from '@daffodil/driver/shopify'
The entry point for all Storefront API queries. Provides access to shop resources including products, collections, carts, and customer data, as well as content like articles and pages. This query acts as the public, top-level type from which all queries must start.
Use individual queries like product or collection to fetch specific resources by ID or handle. Use plural queries like products or collections to retrieve paginated lists with optional filtering and sorting. The search and predictiveSearch queries enable storefront search functionality.
Explore queries interactively with the GraphiQL explorer and sample query kit.
interface ShopifyQueryRoot {
__typename: "QueryRoot"
article: ShopifyArticle
articles: ShopifyArticleConnection
blog: ShopifyBlog
blogByHandle: ShopifyBlog
blogs: ShopifyBlogConnection
cart: ShopifyCart
cartCompletionAttempt: ShopifyCartCompletionAttemptResult
collection: ShopifyCollection
collectionByHandle: ShopifyCollection
collections: ShopifyCollectionConnection
customer: ShopifyCustomer
localization: ShopifyLocalization
locations: ShopifyLocationConnection
menu: ShopifyMenu
metaobject: ShopifyMetaobject
metaobjects: ShopifyMetaobjectConnection
node: ShopifyNode
nodes: ShopifyNode[]
page: ShopifyPage
pageByHandle: ShopifyPage
pages: ShopifyPageConnection
paymentSettings: ShopifyPaymentSettings
predictiveSearch: ShopifyPredictiveSearchResult
product: ShopifyProduct
productByHandle: ShopifyProduct
productRecommendations: ShopifyProduct[]
productTags: ShopifyStringConnection
productTypes: ShopifyStringConnection
products: ShopifyProductConnection
publicApiVersions: ShopifyApiVersion[]
search: ShopifySearchResultItemConnection
shop: ShopifyShop
sitemap: ShopifySitemap
urlRedirects: ShopifyUrlRedirectConnection
}
__typename "QueryRoot" |
|---|
article ShopifyArticle |
|---|
Returns an |
articles ShopifyArticleConnection |
|---|
Returns a paginated list of Use the |
blog ShopifyBlog |
|---|
Retrieves a |
blogByHandle ShopifyBlog |
|---|
Retrieves a |
blogs ShopifyBlogConnection |
|---|
Returns a paginated list of the shop's |
cart ShopifyCart |
|---|
Returns a Use the |
cartCompletionAttempt ShopifyCartCompletionAttemptResult |
|---|
A poll for the status of the cart checkout completion and order creation. |
collection ShopifyCollection |
|---|
Retrieves a single |
collectionByHandle ShopifyCollection |
|---|
Retrieves a |
collections ShopifyCollectionConnection |
|---|
Returns a paginated list of the shop's collections. Each |
customer ShopifyCustomer |
|---|
Retrieves the The returned customer includes data such as contact information, addresses, orders, and custom data associated with the customer. |
localization ShopifyLocalization |
|---|
Returns the shop's localization settings. Use this query to build country and language selectors for your storefront. The |
locations ShopifyLocationConnection |
|---|
Returns shop locations that support in-store pickup. Use the When sorting by distance, set Learn more about supporting local pickup on storefronts. |
menu ShopifyMenu |
|---|
Retrieves a Each menu contains |
metaobject ShopifyMetaobject |
|---|
Retrieves a single
|
metaobjects ShopifyMetaobjectConnection |
|---|
Returns a paginated list of The required |
node ShopifyNode |
|---|
Retrieves any object that implements the This query follows the Relay specification and is commonly used for refetching objects when you have their ID but need updated data. |
nodes ShopifyNode[] |
|---|
Retrieves multiple objects by their global IDs in a single request. Any object that implements the Use inline fragments to access type-specific fields on the returned objects. The input accepts up to 250 IDs. |
page ShopifyPage |
|---|
Retrieves a The returned page includes information such as the HTML body content, |
pageByHandle ShopifyPage |
|---|
Retrieves a |
pages ShopifyPageConnection |
|---|
Returns a paginated list of the shop's content pages. Pages are custom HTML content like "About Us", "Contact", or policy information that merchants display outside their product catalog. |
paymentSettings ShopifyPaymentSettings |
|---|
Settings related to payments. |
predictiveSearch ShopifyPredictiveSearchResult |
|---|
Returns suggested results as customers type in a search field, enabling type-ahead search experiences. The query matches products, collections, pages, and articles based on partial search terms, and also provides search query suggestions to help customers refine their search. You can filter results by resource type and limit the quantity. The |
product ShopifyProduct |
|---|
Retrieves a single |
productByHandle ShopifyProduct |
|---|
Retrieves a |
productRecommendations ShopifyProduct[] |
|---|
Returns recommended products for a given product, identified by either ID or handle. Use the Shopify auto-generates related recommendations based on sales data, product descriptions, and collection relationships. Complementary recommendations require manual configuration through the Shopify Search & Discovery app. Returns up to ten |
productTags ShopifyStringConnection |
|---|
Returns a paginated list of all tags that have been added to products in the shop. Useful for building tag-based product filtering or navigation in a storefront. |
productTypes ShopifyStringConnection |
|---|
Returns a list of product types from the shop's |
products ShopifyProductConnection |
|---|
Returns a paginated list of the shop's products. For full-text storefront search, use the |
publicApiVersions ShopifyApiVersion[] |
|---|
Returns all public Storefront API versions, including supported, release candidate, and unstable versions. |
search ShopifySearchResultItemConnection |
|---|
Returns paginated search results for The response includes the total result count and available product filters for building faceted search interfaces. Use the |
shop ShopifyShop |
|---|
Returns the Use this query to access data like store policies, |
sitemap ShopifySitemap |
|---|
Returns sitemap data for a specific resource type, enabling headless storefronts to generate XML sitemaps for search engine optimization. The query provides a page count and paginated access to resources like When paginating through resources, the number of items per page varies from 0 to 250, and empty pages can occur without indicating the end of results. Always check |
urlRedirects ShopifyUrlRedirectConnection |
|---|
Returns a paginated list of |