Hi, is there a way to directly query a media without querying a record ?
Iโd like to get responsive image data for media hosted on Dato CMS without having to add them to record.
Hi, is there a way to directly query a media without querying a record ?
Iโd like to get responsive image data for media hosted on Dato CMS without having to add them to record.
I believe you can use the โallUploadsโ model:
query MyQuery {
allUploads {
id
title
url
alt
}
}
Works like a charm! Sorry I didnโt notice that collection in the explorer. Pretty obvious nowโฆ