Files
web/packages/trpc/lib/graphql/Fragments/Blocks/AllCampaigns.graphql.ts
Linus Flood 5fc93472f4 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
2026-01-27 12:38:36 +00:00

39 lines
773 B
TypeScript

import { gql } from "graphql-tag"
export const AllCampaigns = gql`
fragment AllCampaigns on CampaignOverviewPageBlocksAllCampaigns {
all_campaigns {
heading
preamble
campaignsConnection {
edges {
node {
... on CampaignPage {
url
card_content {
heading
image
text
}
system {
locale
}
}
... on PromoCampaignPage {
url
card_content {
heading
image
text
}
system {
locale
}
}
}
}
}
}
}
`