Regarding the following line we experienced some trouble because the root of our subgraph is called RootQuery and not just Query. While this in general is no problem it is lacking some documentation. It took us quite some hours and the help of @margnusnordlander (issue) to figure this out.
Maybe this convention should be mentioned in the docs or could be dynamically adjusted to the defined query name.
|
if ($type->name === 'Query') { |