Skip to content

Different Root Query name than 'Query' breaks federation sdlΒ #32

@Bastianowicz

Description

@Bastianowicz

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') {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions