Directly query media?

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
  }
}
3 Likes

Works like a charm! Sorry I didn’t notice that collection in the explorer. Pretty obvious now…

1 Like