70 lines
1.8 KiB
GraphQL
70 lines
1.8 KiB
GraphQL
#import "../Fragments/MyPages/AccountPage/AccountPageContentDynamicContent.graphql"
|
|
#import "../Fragments/MyPages/AccountPage/AccountPageContentShortcuts.graphql"
|
|
#import "../Fragments/MyPages/AccountPage/AccountPageContentTextContent.graphql"
|
|
|
|
#import "../Fragments/Refs/AccountPage.graphql"
|
|
#import "../Fragments/Refs/ContentPage.graphql"
|
|
#import "../Fragments/Refs/LoyaltyPage.graphql"
|
|
#import "../Fragments/Refs/System.graphql"
|
|
|
|
query GetAccountPage($locale: String!, $url: String!) {
|
|
all_account_page(limit: 1, locale: $locale, where: { url: $url }) {
|
|
items {
|
|
url
|
|
title
|
|
content {
|
|
__typename
|
|
...AccountPageContentDynamicContent
|
|
...AccountPageContentShortcuts
|
|
...AccountPageContentTextContent
|
|
}
|
|
}
|
|
total
|
|
}
|
|
}
|
|
|
|
query GetAccountPageRefs($locale: String!, $url: String!) {
|
|
all_account_page(limit: 1, locale: $locale, where: { url: $url }) {
|
|
items {
|
|
content {
|
|
... on AccountPageContentDynamicContent {
|
|
__typename
|
|
dynamic_content {
|
|
link {
|
|
linkConnection {
|
|
edges {
|
|
node {
|
|
__typename
|
|
...AccountPageRef
|
|
...LoyaltyPageRef
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
... on AccountPageContentShortcuts {
|
|
__typename
|
|
shortcuts {
|
|
shortcuts {
|
|
linkConnection {
|
|
edges {
|
|
node {
|
|
__typename
|
|
...AccountPageRef
|
|
...ContentPageRef
|
|
...LoyaltyPageRef
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
}
|
|
}
|