Skip to content

Commit

Permalink
chore(lint)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Sep 23, 2019
1 parent 6db3afd commit 797477d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/stitching/makeRemoteExecutableSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export default function makeRemoteExecutableSchema({
targetSchema = buildSchema(targetSchema, buildSchemaOptions);
}

const schema = cloneSchema(targetSchema);
stripResolvers(schema);
const remoteSchema = cloneSchema(targetSchema);
stripResolvers(remoteSchema);

function createProxyingResolver(
schema: GraphQLSchema,
Expand All @@ -64,16 +64,16 @@ export default function makeRemoteExecutableSchema({
}
}

const resolvers = generateProxyingResolvers(schema, [], createProxyingResolver);
const resolvers = generateProxyingResolvers(remoteSchema, [], createProxyingResolver);
addResolveFunctionsToSchema({
schema,
schema: remoteSchema,
resolvers,
resolverValidationOptions: {
allowResolversNotInSchema: true,
},
});

return schema;
return remoteSchema;
}

export function createResolver(fetcher: Fetcher): GraphQLFieldResolver<any, any> {
Expand Down

0 comments on commit 797477d

Please sign in to comment.