Gatsby: Reverse querying a list of the usage (or non-usage) of image nodes

Created on 17 Jun 2019  路  2Comments  路  Source: gatsbyjs/gatsby

I have a feeling there isn't a way to do this but hopefully there is!
I have a project with a ton of images and I'm sure 50% of those images aren't being used but I don't know which images those are.
Is there a way to find image nodes that aren't being linked to by other nodes?
It would be cool to be able to use GraphQL to query for a list of those unused images.

question or discussion

All 2 comments

Is there a way to find image nodes that aren't being linked to by other nodes?

Not currently 馃槥

No worries, I can write a script to find them. Thanks for the response!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

totsteps picture totsteps  路  3Comments

ghost picture ghost  路  3Comments

KyleAMathews picture KyleAMathews  路  3Comments

theduke picture theduke  路  3Comments

mikestopcontinues picture mikestopcontinues  路  3Comments