WIP pages implementation & fix add to cart variant ID bug

Signed-off-by: Loan Laux <loan@outgrow.io>
This commit is contained in:
Loan Laux
2021-05-17 15:28:04 +04:00
parent 16e475067b
commit 3112c7fc80
4 changed files with 45 additions and 22 deletions

View File

@@ -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
}
}
}
}
}