Skip to content

Commit

Permalink
ExtendSchema comment (#1546)
Browse files Browse the repository at this point in the history
helpful to explain why result of MapFields transformSchema function is not saved
  • Loading branch information
yaacovCR committed May 27, 2020
1 parent 47735d7 commit 02c9b1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/wrap/src/transforms/ExtendSchema.ts
Expand Up @@ -30,6 +30,8 @@ export default class ExtendSchema implements Transform {
}

public transformSchema(schema: GraphQLSchema): GraphQLSchema {
// MapFields's transformSchema function does not actually modify the schema --
// it saves the current schema state, to be used later to transform requests.
this.transformer.transformSchema(schema);

return addResolversToSchema({
Expand Down

0 comments on commit 02c9b1a

Please sign in to comment.