apollo-rs icon indicating copy to clipboard operation
apollo-rs copied to clipboard

Add failing test for #916

Open goto-bus-stop opened this issue 1 year ago • 1 comments

It also reports this, which doesn't make sense:

Error: interface, union and object types must have a subselection set
   ╭─[0119_nested_subselection_issue_916.graphql:8:17]
   │
 8 │ query Invalid { me { name { reviews { body } } } }
   │                 ────────────────┬───────────────
   │                                 ╰───────────────── `Query.me` is an object type `User` and must select fields
───╯

goto-bus-stop avatar Sep 26 '24 12:09 goto-bus-stop

The reason appears to be that the executable::Field's subselection gets emptied during ast -> executable conversion, and validation does not know about this

goto-bus-stop avatar Jan 29 '25 16:01 goto-bus-stop