mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
WIP pages implementation & fix add to cart variant ID bug
Signed-off-by: Loan Laux <loan@outgrow.io>
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
export const getAllPagesQuery = /* GraphQL */ `
|
||||
query getAllPages($first: Int = 250) {
|
||||
pages(first: $first) {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
title
|
||||
handle
|
||||
query getAllPages($shopId: ID!, $language: String! = "en") {
|
||||
shop(id: $shopId) {
|
||||
defaultNavigationTree(language: $language) {
|
||||
items {
|
||||
navigationItem {
|
||||
_id
|
||||
data {
|
||||
contentForLanguage
|
||||
classNames
|
||||
url
|
||||
isUrlRelative
|
||||
shouldOpenInNewWindow
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user