From 02c9b1abb553f567ed92d49e78b3b0582da78115 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Wed, 27 May 2020 14:58:24 -0400 Subject: [PATCH] ExtendSchema comment (#1546) helpful to explain why result of MapFields transformSchema function is not saved --- packages/wrap/src/transforms/ExtendSchema.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/wrap/src/transforms/ExtendSchema.ts b/packages/wrap/src/transforms/ExtendSchema.ts index a824d0736ca..12834be0d10 100644 --- a/packages/wrap/src/transforms/ExtendSchema.ts +++ b/packages/wrap/src/transforms/ExtendSchema.ts @@ -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({