Filter nodes by connected nodes?

It is possible with DQL in a single query. It is possible right now in GraphQL with multiple queries, but there is a RFC and work being done towards this: