#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 { __typename ... on LoyaltyPageBlocksDynamicContent { dynamic_content { title subtitle component link { text pageConnection { edges { node { ...ContentPageLink ...LoyaltyPageLink } } totalCount } } } } ... on LoyaltyPageBlocksCardGrid { card_grid { title subtitle cards { referenceConnection { edges { node { __typename ...LoyaltyPageLink ...ContentPageLink ...AccountPageLink } } totalCount } title subtitle open_in_new_tab } } } ... on LoyaltyPageBlocksContent { content { content { json embedded_itemsConnection { edges { node { __typename ...Image } } totalCount } } } } } title sidebar { __typename ... on LoyaltyPageSidebarJoinLoyaltyContact { join_loyalty_contact { title preamble contact { ... on LoyaltyPageSidebarJoinLoyaltyContactBlockContactContact { __typename contact { display_text contact_field } } } } } ... on LoyaltyPageSidebarContent { content { content { json embedded_itemsConnection { edges { node { __typename ...Image } } totalCount } } } } } web { breadcrumbs { title parents { href title } } } system { uid created_at updated_at } } } }