Merged in feat/rework-contentstack (pull request #3493)
Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation * Remove all REFS * Revalidate correct language * PR fixes * PR fixes * Throw when errors from contentstack api Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -4,12 +4,6 @@ import {
|
||||
AccordionBlock,
|
||||
GlobalAccordionBlock,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
AccordionBlockRefs,
|
||||
GlobalAccordionBlockRefs,
|
||||
} from "../../Fragments/Blocks/Refs/Accordion.graphql"
|
||||
import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql"
|
||||
import { CollectionPageLink } from "../../Fragments/PageLink/CollectionPageLink.graphql"
|
||||
import { ContentPageLink } from "../../Fragments/PageLink/ContentPageLink.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
@@ -121,52 +115,6 @@ export const GetHotelPage = gql`
|
||||
${CollectionPageLink}
|
||||
`
|
||||
|
||||
export const GetHotelPageRefs = gql`
|
||||
query GetHotelPageRefs($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
faq {
|
||||
global_faqConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
specific_faq {
|
||||
...GlobalAccordionBlockRefs
|
||||
}
|
||||
}
|
||||
content {
|
||||
__typename
|
||||
... on HotelPageContentUpcomingActivitiesCard {
|
||||
upcoming_activities_card {
|
||||
hotel_page_activities_content_pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
trackingProps: hotel_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${AccordionBlockRefs}
|
||||
${GlobalAccordionBlockRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsHotelPage = gql`
|
||||
query GetDaDeEnUrlsHotelPage($uid: String!) {
|
||||
de: hotel_page(locale: "de", uid: $uid) {
|
||||
|
||||
Reference in New Issue
Block a user