When using Contentful with Gatsby, how do I retrieve an image from a content's media field via Gatsby's GraphQL? (like a link to the image would do)
Let's say I have a content model called "Article", that contains below 3 fields:
field name | field type |
---|---|
title | Short text |
description | Short text |
photo | Media |
I write a content with an image attached to "photo".
When I go to GraphQL and I can find "title" and "description" under allArticle.edges.node
., but not "photo".
How do I retrieve media referenced in a content from GraphQL?