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:
@@ -1,13 +1,7 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_PromoCampaignPage,
|
||||
Accordion_PromoCampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
Content_PromoCampaignPage,
|
||||
Content_PromoCampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import { Accordion_PromoCampaignPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { Content_PromoCampaignPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetPromoCampaignPage = gql`
|
||||
@@ -49,24 +43,6 @@ export const GetPromoCampaignPage = gql`
|
||||
${Content_PromoCampaignPage}
|
||||
`
|
||||
|
||||
export const GetPromoCampaignPageRefs = gql`
|
||||
query GetPromoCampaignPageRefs($locale: String!, $uid: String!) {
|
||||
promo_campaign_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_PromoCampaignPageRefs
|
||||
...Content_PromoCampaignPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${Accordion_PromoCampaignPageRefs}
|
||||
${Content_PromoCampaignPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsPromoCampaignPage = gql`
|
||||
query GetDaDeEnUrlsPromoCampaignPage($uid: String!) {
|
||||
de: promo_campaign_page(locale: "de", uid: $uid) {
|
||||
|
||||
Reference in New Issue
Block a user