#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 subtitle component link { text pageConnection { edges { node { ...ContentPageLink ...LoyaltyPageLink } } } } } } ... on LoyaltyPageBlocksCardGrid { __typename card_grid { title subtitle cards { referenceConnection { edges { node { __typename ...LoyaltyPageLink ...ContentPageLink ...AccountPageLink } } } title subtitle } } } ... 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 } } } }