QueryRoot
- Object
- Other types
The root of every query: each field is an operation with its own page.
Fields
| Field | Type | Description |
|---|---|---|
article | Article | Returns one published article by its id, or null when no visible article has that ID. |
articles | ArticleConnection! | Lists the store's published articles across all blogs, a page at a time with first/after. |
blog | Blog | Returns one blog, found by id or by handle. |
blogByHandle | Blog | Deprecated Looks up a blog by its handle. |
blogs | BlogConnection! | Lists the store's blogs, a page at a time with first/after. |
cart | Cart | Returns a cart by its id, including its lines, costs, buyer and delivery details, or null when the cart cannot be found. |
cartCompletionAttempt | CartCompletionAttemptResult | Returns the current state of a checkout completion started by cartSubmitForCompletion: still processing, needing a buyer action, failed, or done with the new order. |
collection | Collection | Returns one collection visible on the online store, found by id or by handle. |
collectionByHandle | Collection | Deprecated Returns the visible collection with the given handle, or null. |
collections | CollectionConnection! | Lists the collections visible on the online store, a page at a time with first/after, with a totalCount. |
customer | Customer | Returns the signed-in customer that a valid customerAccessToken belongs to, or null when the token is unknown or expired. |
localization | Localization! | Returns the buyer's current country, language and market, plus the countries and languages the store offers, following the request's @inContext values. |
locations | LocationConnection! | Lists the store's active locations that offer local pickup, a page at a time with first/after. |
menu | Menu | Returns the navigation menu with the given handle, with its items, or null when the store has no such menu. |
metaobject | Metaobject | Returns one storefront-readable metaobject, found by id or by a handle together with its type. |
metaobjects | MetaobjectConnection! | Lists the visible metaobjects of one type, a page at a time with first/after. |
node | Node | Returns any object that has a global id, such as a product, variant, collection, media item, location, page, blog, article, menu or metaobject. |
nodes | [Node]! | Returns the objects for a list of global ids, in the same order, with null for each ID that is hidden, unknown or malformed. |
page | Page | Returns one published page, found by id or by handle. |
pageByHandle | Page | Deprecated Looks up a page by its handle. |
pages | PageConnection! | Lists the store's published pages, a page at a time with first/after. |
paymentSettings | PaymentSettings! | Returns how the store takes payment: its country and currency, the currencies buyers can pay in, the card brands and digital wallets it accepts, and its payments account. |
predictiveSearch | PredictiveSearchResult | Returns type-ahead suggestions for a partly typed query: matching products, collections and suggested search terms. |
product | Product | Returns one product visible on the online store, found by id or by handle. |
productByHandle | Product | Deprecated Returns the visible product with the given handle, or null. |
productRecommendations | [Product!] | Returns up to ten visible products related to the product named by productId or productHandle, ranked by shared collections, tags, type and vendor. |
productTags | StringConnection! | Lists the distinct tags used on the store's visible products, as strings, a page at a time. |
productTypes | StringConnection! | Lists the distinct product types used on the store's visible products, as strings, a page at a time. |
products | ProductConnection! | Lists the products visible on the online store, a page at a time with first/after. |
publicApiVersions | [ApiVersion!]! | Lists the API versions this service knows, with each one's handle, display name and whether it is still supported. |
search | SearchResultItemConnection! | Searches the store for a query and returns ranked results, a page at a time, with a totalCount and the filters available for the matches. |
shop | Shop! | Returns the store itself: its name, description, primary domain, policies, money format, payment settings and the countries it ships to. |
sitemap | Sitemap! | Returns the sitemap for one resource type (products, collections, pages, blogs, articles or metaobjects): how many pages it has and the resources on a chosen page. |
urlRedirects | UrlRedirectConnection! | Lists the store's URL redirects, each mapping an old path to a target, a page at a time with first/after. |
tanqoryExtCheckoutConfiguration | TanqoryExtCheckoutConfiguration! | The published checkout configuration of the store: the checkout editor's branding, the checkout field settings and the shop policies the checkout links to. |
tanqoryExtCheckoutRecover | TanqoryExtCheckoutRecovery | Opens an abandoned checkout from its recovery link (/checkouts/ac/<cartToken>/recover?key=<key>, the admin AbandonedCheckout.abandonedCheckoutUrl), or finds what became of a cart the checkout holds: key is the recovery… |
tanqoryExtOrderStatus | TanqoryExtOrderStatus | The order behind the thank-you and order status pages. |
tanqoryExtCheckoutPaymentOptions | [TanqoryExtCheckoutPaymentOption!] | The payment options checkout offers for the cart, in order: the store's payments account, then its gateway accounts, then its active manual methods. |
tanqoryExtCheckoutCardEntry | TanqoryExtCheckoutCardEntry | What the checkout page needs to turn the buyer's card into a card vault session (directPaymentMethod.sessionId) with the card vault in use: for Stripe, Stripe.js with this publishable key on the store's connected accoun… |
tanqoryExtPublishedTheme | TanqoryExtTheme | The store's published (MAIN) theme, or null when the store has none. |
tanqoryExtThemeFiles | TanqoryExtThemeFileConnection | Files of one theme of the store, ordered by filename. |
tanqoryExtOnlineStore | TanqoryExtOnlineStore! | The online store's password protection, for the password page. |
tanqoryExtWebPresences | [TanqoryExtWebPresence!]! | The store's web presences (admin webPresences), for the renderer's market subfolders and hreflang (card WEB-9): a domain presence (subfolderSuffix null) serves its default locale at / and each alternate at /<locale>; a… |
tanqoryExtGiftCard | TanqoryExtGiftCard | The gift card behind the /gift_cards/:token page. |
tanqoryExtInvoice | TanqoryExtInvoice | What the invoice asks the buyer to pay. |
tanqoryExtCheckoutPaymentAction | TanqoryExtPaymentAction | What the buyer has to do to finish a completion attempt that waits for them (cartCompletionAttempt answered CartCompletionActionRequired). |
tanqoryExtCheckoutPaypalExpress | TanqoryExtPaypalExpress | What the checkout loads PayPal's button with: the store's active PayPal gateway account offers paypal for this cart (its client id, never a secret), the cart's currency and the intent the store's capture method gives. |