diff --git a/src/Interfaces.ts b/src/Interfaces.ts index d5e513c0814..a9cca8d74d6 100644 --- a/src/Interfaces.ts +++ b/src/Interfaces.ts @@ -71,11 +71,11 @@ export type MergeInfo = { info: GraphQLResolveInfo, transforms?: Array, ) => any; - delegateToSchema(options: IDelegateToSchemaOptions): any; fragments: Array<{ field: string; fragment: string; }>; + delegateToSchema(options: IDelegateToSchemaOptions): any; }; export type IFieldResolver> = ( diff --git a/src/mock.ts b/src/mock.ts index 9a53a2beb2b..adcfb41eb84 100644 --- a/src/mock.ts +++ b/src/mock.ts @@ -217,8 +217,8 @@ function addMockFunctionsToSchema({ // we have to handle the root mutation and root query types differently, // because no resolver is called at the root. /* istanbul ignore next: Must provide schema DefinitionNode with query type or a type named Query. */ - const isOnQueryType: boolean = schema.getQueryType() && schema.getQueryType().name === typeName - const isOnMutationType: boolean = schema.getMutationType() && schema.getMutationType().name === typeName + const isOnQueryType: boolean = schema.getQueryType() && schema.getQueryType().name === typeName; + const isOnMutationType: boolean = schema.getMutationType() && schema.getMutationType().name === typeName; if (isOnQueryType || isOnMutationType) { if (mockFunctionMap.has(typeName)) {