sanity-io / gatsby-source-sanity

Gatsby source plugin for building websites using Sanity.io as a backend.
https://www.sanity.io/
MIT License
197 stars 61 forks source link

Not able to filter ImageAssets by MediaTag #263

Open fostimus opened 1 year ago

fostimus commented 1 year ago

In the Media Library for Sanity, there's a way to tag photos. It's accessible via GROQ, and we are able to pull images for only a specific tag.

In Gatsby, that's not possible. Here are the fields for ImageAssets from the source plugin:

Screen Shot 2023-09-08 at 5 31 07 PM

I can use the API client, but that defeats the purpose of a source plugin for Gatsby :/