diff --git a/src/type/definition.ts b/src/type/definition.ts index 81488efb39..f466b77ee3 100644 --- a/src/type/definition.ts +++ b/src/type/definition.ts @@ -719,8 +719,10 @@ export class GraphQLObjectType { this.astNode = config.astNode; this.extensionASTNodes = config.extensionASTNodes ?? []; - this._fields = () => defineFieldMap(config); - this._interfaces = () => defineInterfaces(config); + // prettier-ignore + // FIXME: blocked by https://github.com/prettier/prettier/issues/14625 + this._fields = (defineFieldMap).bind(undefined, config); + this._interfaces = defineInterfaces.bind(undefined, config); } get [Symbol.toStringTag]() {