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

138 lines
3.1 KiB
GraphQL

#import "../Fragments/Image.graphql"
query GetLoyaltyPage($locale: String!, $url: String!) {
all_loyalty_page(where: { url: $url, locale: $locale }) {
items {
content {
... on LoyaltyPageContentLoyaltyLevels {
__typename
loyalty_levels {
heading
sub_heading
level_card {
loyalty_level
}
}
}
... on LoyaltyPageContentCardGrid {
__typename
card_grid {
heading
subheading
cards {
referenceConnection {
edges {
node {
... on LoyaltyPage {
system {
locale
uid
}
url
title
}
... on ContentPage {
system {
locale
uid
}
url
title
}
... on AccountPage {
system {
locale
uid
}
url
title
}
}
}
}
heading
subheading
}
}
}
}
title
sidebar {
... on LoyaltyPageSidebarJoinLoyaltyContact {
__typename
join_loyalty_contact {
title
contact {
... on LoyaltyPageSidebarJoinLoyaltyContactBlockContactContact {
__typename
contact {
contact_fields
}
}
}
login_button_text
body {
json
embedded_itemsConnection(limit: 30) {
edges {
node {
__typename
...Image
}
}
}
}
}
}
... on LoyaltyPageSidebarContent {
__typename
content {
content {
json
embedded_itemsConnection {
edges {
node {
...Image
}
}
}
}
}
}
}
web {
breadcrumbs {
title
parents {
href
title
}
}
seo_metadata {
description
title
imageConnection {
edges {
node {
file_size
filename
dimension {
height
width
}
url
title
}
}
}
}
}
system {
uid
created_at
updated_at
}
}
}
}