I am using gatsby with a wordpress CMS to display upcoming events on my gatsby web app .I am using the plugin gatsby-source-tribe-events
to connect to the wordpress event calendar
plugin and get the event data.
The problem is that I want to dynamically display all my events with their description and images using <GatsbyImage/>
.
As you know to display the image with the above component , there has to be a childImageSharp
field in graphql
for every item
My problem is that the gatsby-source-tribe-events
plugin does not have a childImageSharp
field when querying for an image , so I cannot dynamically get all images OPTIMIZED
What is a workaround to this ? How can I use GatsbyImage when the childImageSharp field is not there ? Is there a way to add it to the graphql schema ?