feat(BOOK-609): Using embedded url for assets instead of href since that is not updated when the asset is updated)
* feat(BOOK-609): Updated refs handling for assets inside content pages Approved-by: Linus Flood
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AssetSystem } from "./System.graphql"
|
||||
|
||||
export const SysAsset = gql`
|
||||
fragment SysAsset on SysAsset {
|
||||
content_type
|
||||
@@ -10,9 +12,22 @@ export const SysAsset = gql`
|
||||
}
|
||||
metadata
|
||||
system {
|
||||
uid
|
||||
...AssetSystem
|
||||
}
|
||||
title
|
||||
url
|
||||
permanent_url
|
||||
}
|
||||
${AssetSystem}
|
||||
`
|
||||
|
||||
export const SysAssetRef = gql`
|
||||
fragment SysAssetRef on SysAsset {
|
||||
system {
|
||||
...AssetSystem
|
||||
}
|
||||
url
|
||||
permanent_url
|
||||
}
|
||||
${AssetSystem}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user