Skip to content

Commit

Permalink
Make wrapSchema generic. Fix #3064 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinLF authored and ardatan committed Jun 21, 2021
1 parent 3a6a64b commit 453ceb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/wrap/src/wrapSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any, any, any, any>): GraphQLSchema {
export function wrapSchema<TConfig = Record<string, any>>(
subschemaConfig: SubschemaConfig<any, any, any, TConfig>
): GraphQLSchema {
const targetSchema = subschemaConfig.schema;

const proxyingResolvers = generateProxyingResolvers(subschemaConfig);
Expand Down

0 comments on commit 453ceb3

Please sign in to comment.