* feat(BOOK-609): Updated refs handling for assets inside content pages Approved-by: Linus Flood
34 lines
497 B
TypeScript
34 lines
497 B
TypeScript
import { gql } from "graphql-tag"
|
|
|
|
import { AssetSystem } from "./System.graphql"
|
|
|
|
export const SysAsset = gql`
|
|
fragment SysAsset on SysAsset {
|
|
content_type
|
|
description
|
|
dimension {
|
|
height
|
|
width
|
|
}
|
|
metadata
|
|
system {
|
|
...AssetSystem
|
|
}
|
|
title
|
|
url
|
|
permanent_url
|
|
}
|
|
${AssetSystem}
|
|
`
|
|
|
|
export const SysAssetRef = gql`
|
|
fragment SysAssetRef on SysAsset {
|
|
system {
|
|
...AssetSystem
|
|
}
|
|
url
|
|
permanent_url
|
|
}
|
|
${AssetSystem}
|
|
`
|