From 321e8ca3a53c5e0059328ea886096cb9e82291df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augustin=20Le=20F=C3=A8vre?= Date: Fri, 11 Jun 2021 08:52:30 +0200 Subject: [PATCH] Make wrapSchema generic. Fix #3064 (#1) --- packages/wrap/src/wrapSchema.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/wrap/src/wrapSchema.ts b/packages/wrap/src/wrapSchema.ts index 391c8fd658f..6d7f9d1ed9c 100644 --- a/packages/wrap/src/wrapSchema.ts +++ b/packages/wrap/src/wrapSchema.ts @@ -11,7 +11,9 @@ import { MapperKind, mapSchema } from '@graphql-tools/utils'; import { SubschemaConfig, defaultMergedResolver, applySchemaTransforms } from '@graphql-tools/delegate'; import { generateProxyingResolvers } from './generateProxyingResolvers'; -export function wrapSchema(subschemaConfig: SubschemaConfig): GraphQLSchema { +export function wrapSchema>( + subschemaConfig: SubschemaConfig +): GraphQLSchema { const targetSchema = subschemaConfig.schema; const proxyingResolvers = generateProxyingResolvers(subschemaConfig);