Skip to content

v0.2.0

Choose a tag to compare

@ardatan ardatan released this 01 Jun 10:54
· 8376 commits to master since this release

Contact us here for help, more necessary open source tools and Enterprise support
or Chat with us on discord

BREAKING CHANGE
We dropped @graphql-mesh/transform-extend and introduce additionalTypeDefs because typeDefs and resolvers that do stitching must be provided with stitchSchemas if we want to benefit from selectionSet feature of GraphQL Tools Schema Stitching

{ 
   selectionSet: `{ id }`,  //<< ID should be available here even if the parent selection set doesn't have that.
   resolve ({ id }, { Users }) {
      return Users.api.user({ id }); 
   }
}

When we use extend transform and additionalResolvers, stitchSchemas doesn't understand they're stitching typeDefs and resolvers so selectionSet isn't applied there.

Related #301

You can check the examples of new usage;