If you need to get things based on what they reference:

taxon->{slug}.slug.current == "${params.slug}" In this case, I wanted to get all the posts that reference the taxon, based on the taxon slug. In this case the posts have a field named taxon, so this is how to get the slug of the taxon referenced in that field in order to compare it to the slug from the URL or whatever.

usefulsanity-cms