To be clear, you’re talking about Nested Filters (probably the most requested GraphQL Feature).
And this is my suggestion, the @reference directive. This could be accomplished now by using a post-hook lambda, but you would have to write it. This is definitely a huge missing feature, but do-able now.
J