Feat/BOOK-240 hero video
Approved-by: Chuma Mcphoy (We Ahead) Approved-by: Christel Westerberg
This commit is contained in:
@@ -7,3 +7,10 @@ export const System = gql`
|
||||
uid
|
||||
}
|
||||
`
|
||||
|
||||
export const AssetSystem = gql`
|
||||
fragment AssetSystem on SysAssetSystemField {
|
||||
content_type_uid
|
||||
uid
|
||||
}
|
||||
`
|
||||
|
||||
45
packages/trpc/lib/graphql/Fragments/Video.graphql.ts
Normal file
45
packages/trpc/lib/graphql/Fragments/Video.graphql.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AssetSystem } from "./System.graphql"
|
||||
|
||||
export const Video = gql`
|
||||
fragment Video on Video {
|
||||
sourceConnection {
|
||||
edges {
|
||||
node {
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
focal_point {
|
||||
x
|
||||
y
|
||||
}
|
||||
captions {
|
||||
is_default
|
||||
language
|
||||
fileConnection {
|
||||
edges {
|
||||
node {
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const VideoRef = gql`
|
||||
fragment VideoRef on Video {
|
||||
sourceConnection {
|
||||
edges {
|
||||
node {
|
||||
system {
|
||||
...AssetSystem
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AssetSystem}
|
||||
`
|
||||
Reference in New Issue
Block a user