Files
web/lib/graphql/Query/LoyaltyPage.graphql
2024-04-29 14:02:03 +02:00

126 lines
2.9 KiB
GraphQL

#import "../Fragments/Image.graphql"
#import "../Fragments/PageLink/AccountPageLink.graphql"
#import "../Fragments/PageLink/ContentPageLink.graphql"
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
query GetLoyaltyPage($locale: String!, $url: String!) {
all_loyalty_page(where: { url: $url, locale: $locale }) {
items {
blocks {
... on LoyaltyPageBlocksDynamicContent {
__typename
dynamic_content {
title
preamble
component
link {
text
pageConnection {
edges {
node {
...ContentPageLink
...LoyaltyPageLink
}
}
}
}
}
}
... on LoyaltyPageBlocksCardGrid {
__typename
card_grid {
heading
preamble
cards {
referenceConnection {
edges {
node {
__typename
...LoyaltyPageLink
...ContentPageLink
...AccountPageLink
}
}
}
heading
preamble
}
}
}
... on LoyaltyPageBlocksContent {
__typename
content {
content {
json
embedded_itemsConnection {
edges {
node {
... on SysAsset {
title
url
dimension {
width
height
}
}
}
}
}
}
}
}
}
title
sidebar {
... on LoyaltyPageSidebarJoinLoyaltyContact {
__typename
join_loyalty_contact {
title
preamble
contact {
... on LoyaltyPageSidebarJoinLoyaltyContactBlockContactContact {
__typename
contact {
display_text
contact_field
}
}
}
login_button_text
}
}
... on LoyaltyPageSidebarContent {
__typename
content {
content {
json
embedded_itemsConnection {
edges {
node {
__typename
...Image
}
}
}
}
}
}
}
web {
breadcrumbs {
title
parents {
href
title
}
}
}
system {
uid
created_at
updated_at
}
}
}
}