I'm working to replace a headless Wordpress installation being used as a backend with Strapi/GraphQL. Because the Media Library is a new feature for Strapi, I'm unable to find any documentation on how to achieve what I'm needing (also my very basic understanding of GraphQL is more than likely a factor.)
Essentially I've got a Content Type of Image. An Image has a name, description and image from the Media Library attached to it (called src
). If I visit the /upload/files
endpoint, I can see several different size variations underneath the key of formats
. I would like access to those formats from a GraphQL query. How would I go about creating a query like this?
{
galleries {
id
name
cover_image {
url
}
images {
id
name
description
src {
url <--- comes from Cloudinary URL. I would like formats within the image object
}
}
}
}