graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

With encapsulate transform, it is not possible to point to the root types

Open ardatan opened this issue 1 month ago • 0 comments

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

ardatan avatar May 16 '24 11:05 ardatan