GraphQL Inputs to Filter Nested Collections

I’m trying to write a query to do a nested query within a larger one. I feel like this should be possible, but since Realm generates the schema for me, they only generate inputs for each high level one, and not for when it’s nested like below.

So there would be inputs for grandsparents, parents, and children if they were each at the top level. But when nested like this, it’s expecting an input for grandparents.parents.children which doesn’t exist in what Realm generates.

Pretend schema, but this is the gist of what I’m trying with the subquery on children.

query {
  grandparents(query: {address: {city: "New York"}}) {
    parents {
      children (query: {age: 10}) {
        name
      }
    }
}
3 Likes

Did you find a solution for this? I 'm having the same problem.

I am having the same problem. Do we have any workaround for this