github ardatan/graphql-tools @graphql-tools/load@7.6.0

latest releases: release-1727374913368, @graphql-tools/executor-graphql-ws@1.3.0, release-1727267678099...
2 years ago

Minor Changes

  • 4914970: mergeSchemas was skipping defaultFieldResolver and defaultMergedResolver by default while extracting resolvers for each given schema to reduce the overhead. But this doesn't work properly if you mix wrapped schemas and local schemas. So new includeDefaultMergedResolver flag is introduced in getResolversFromSchema to put default "proxy" resolvers in the extracted resolver map for mergeSchemas.

    This fixes an issue with alias issue, so nested aliased fields weren't resolved properly because of the missing defaultMergedResolver in the final merged schema which should come from the wrapped schema.

Patch Changes

  • 4914970: No longer call mergeSchemas if a single schema is loaded.
    Previously all typeDefs and resolvers were extracted and the schema was rebuilt from scratch.
    But this is not necessary if there is only one schema loaded with loadSchema
  • Updated dependencies [4914970]
    • @graphql-tools/schema@8.4.0
    • @graphql-tools/utils@8.7.0

Don't miss a new graphql-tools release

NewReleases is sending notifications on new releases.