-
Improvement
-
Resolution: Fixed
-
Medium
-
None
-
None
-
None
-
-
Empty show more show less
When executing the graphQL query to get the data on an asset, most of the data gets retrieved only on Image type.
This is due to Asset is an extensible type that has not all the properties.
However, in order to be able to use frontify to choose from other asset types (such as videos and PDF documents), we need to extract some additional information on all the types.
By Replacing the query on
getAssetGraphQlQuery() in the file frontify-dam-connector/src/main/java/info/magnolia/external/dam/frontify/service/FrontifyServiceImpl.java
with:
query AssetById {
asset: node(id: ASSET_ID) {
type: __typename
id
... on Asset {
creator
createdAt
modifiedAt
copyright
description
externalId
id
title
tags
metadataValues { value }
}
... on Image
... on Video
{ extension filename duration bitrate width height size previewUrl downloadUrl }... on Document
{ extension filename pageCount size previewUrl downloadUrl }... on File
{ extension filename size previewUrl downloadUrl }}
}
The information needed will be recovered on those types (Image, Video, Document and File)
- causes
-
FRONTIFY-15 Add parameter "permanent: true" to downloadUrl
- Closed