graphql-mesh
graphql-mesh copied to clipboard
With encapsulate transform, it is not possible to point to the root types
When encapsulate transform is used, the root fields become a nested field of encapsulated root types;
type Query {
foo: FooQuery
}
type FooQuery {
foo(id: ID!): Foo
}
In this case, it is not possible to refer to FooQuery.foo
in an additional resolver;
sourceTypeName: FooQuery # won't work because FooQuery is not a root type anymore