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,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
import { Video, VideoRef } from "../Video.graphql"
|
||||
import { Video } from "../Video.graphql"
|
||||
|
||||
const VideoQuoteCard = gql`
|
||||
fragment VideoQuoteCard on VideoQuoteCard {
|
||||
@@ -84,83 +83,3 @@ export const VideoCard_StartPage = gql`
|
||||
${VideoQuoteCard}
|
||||
${VideoTextCard}
|
||||
`
|
||||
|
||||
const VideoQuoteCardRef = gql`
|
||||
fragment VideoQuoteCardRef on VideoQuoteCard {
|
||||
video {
|
||||
...VideoRef
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${VideoRef}
|
||||
${System}
|
||||
`
|
||||
|
||||
const VideoTextCardRef = gql`
|
||||
fragment VideoTextCardRef on VideoTextCard {
|
||||
video {
|
||||
...VideoRef
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${VideoRef}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const VideoCard_ContentPageRefs = gql`
|
||||
fragment VideoCard_ContentPageRefs on ContentPageBlocksVideoCard {
|
||||
video_card {
|
||||
video_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...VideoQuoteCardRef
|
||||
...VideoTextCardRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${VideoQuoteCardRef}
|
||||
${VideoTextCardRef}
|
||||
`
|
||||
|
||||
export const VideoCard_CollectionPageRefs = gql`
|
||||
fragment VideoCard_CollectionPageRefs on CollectionPageBlocksVideoCard {
|
||||
video_card {
|
||||
video_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...VideoQuoteCardRef
|
||||
...VideoTextCardRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${VideoQuoteCardRef}
|
||||
${VideoTextCardRef}
|
||||
`
|
||||
|
||||
export const VideoCard_StartPageRefs = gql`
|
||||
fragment VideoCard_StartPageRefs on StartPageBlocksVideoCard {
|
||||
video_card {
|
||||
video_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...VideoQuoteCardRef
|
||||
...VideoTextCardRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${VideoQuoteCardRef}
|
||||
${VideoTextCardRef}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user