Media
These are examples of queries to fetch and mutate media data.
Fetching media permalink
A media item, with the image source in different sizes:
All media items (with mime type "image" by default), and all the image sizes:
The posts' featured image:
Filtering media items:
Fetching video and audio items:
Setting a post's featured image permalink
We can reference any image existing in the Media library.
With nested mutations: