151 lines
3.3 KiB
GraphQL
151 lines
3.3 KiB
GraphQL
#import "../Fragments/PageLink/AccountPageLink.graphql"
|
|
#import "../Fragments/PageLink/ContentPageLink.graphql"
|
|
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
|
|
|
query GetContentPage($locale: String!, $uid: String!) {
|
|
content_page(uid: $uid, locale: $locale) {
|
|
blocks {
|
|
... on ContentPageBlocksContent {
|
|
__typename
|
|
content {
|
|
content {
|
|
embedded_itemsConnection {
|
|
edges {
|
|
node {
|
|
__typename
|
|
...LoyaltyPageLink
|
|
...ContentPageLink
|
|
...AccountPageLink
|
|
# TODO: Link HotelPage
|
|
# ...Image
|
|
# ... on ImageContainer {
|
|
# title
|
|
# image_left
|
|
# image_right
|
|
# system {
|
|
# uid
|
|
# }
|
|
# }
|
|
}
|
|
}
|
|
totalCount
|
|
}
|
|
json
|
|
}
|
|
}
|
|
}
|
|
... on ContentPageBlocksShortcuts {
|
|
__typename
|
|
shortcuts {
|
|
title
|
|
preamble
|
|
shortcuts {
|
|
open_in_new_tab
|
|
text
|
|
linkConnection {
|
|
totalCount
|
|
edges {
|
|
node {
|
|
...LoyaltyPageLink
|
|
...ContentPageLink
|
|
...AccountPageLink
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
title
|
|
header {
|
|
heading
|
|
preamble
|
|
}
|
|
hero_image
|
|
system {
|
|
uid
|
|
created_at
|
|
updated_at
|
|
locale
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetContentPageRefs($locale: String!, $uid: String!) {
|
|
content_page(locale: $locale, uid: $uid) {
|
|
blocks {
|
|
... on ContentPageBlocksContent {
|
|
__typename
|
|
content {
|
|
content {
|
|
embedded_itemsConnection {
|
|
edges {
|
|
node {
|
|
# No fragments used since we want to include __typename for each type to avoid fetching SystemAsset
|
|
... on ContentPage {
|
|
__typename
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
... on LoyaltyPage {
|
|
__typename
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
... on AccountPage {
|
|
__typename
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetDaDeEnUrlsContentPage($uid: String!) {
|
|
de: all_content_page(where: { uid: $uid }, locale: "de") {
|
|
items {
|
|
url
|
|
}
|
|
}
|
|
en: all_content_page(where: { uid: $uid }, locale: "en") {
|
|
items {
|
|
url
|
|
}
|
|
}
|
|
da: all_content_page(where: { uid: $uid }, locale: "da") {
|
|
items {
|
|
url
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetFiNoSvUrlsContentPage($uid: String!) {
|
|
fi: all_content_page(where: { uid: $uid }, locale: "fi") {
|
|
items {
|
|
url
|
|
}
|
|
}
|
|
no: all_content_page(where: { uid: $uid }, locale: "no") {
|
|
items {
|
|
url
|
|
}
|
|
}
|
|
sv: all_content_page(where: { uid: $uid }, locale: "sv") {
|
|
items {
|
|
url
|
|
}
|
|
}
|
|
}
|