How to list all posts under link fields

I created a model called Tag and in another model called Posts I used Multiple links → [Tag] to add tags to that post. Now in GraphQL, how can I list all the posts published under that tag? I would expect to see a post node but I dont and not sure how to get all the posts for particular tag. Any idea? thanks

datoCmsTagModel(slug: { eq: $slug }) {
      posts{  // expected but no such node exist

hey @DatoUser I think you would like this feature: Expose inverse relations in Dashboard and GraphQL API that unfortunately is not present.

In your case what you want to do is do two queries, one to get the tag and the second one to get the posts that are filtered using that tag id, makes sense?

1 Like

Thanks that is what I essentially did. Also voted up this feature: