Skip to content

Commit a68dc42

Browse files
GraphQLObjectType: partial revert of #3143, due to perf regression (#3874)
1 parent ee303a8 commit a68dc42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/type/definition.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,10 @@ export class GraphQLObjectType<TSource = any, TContext = any> {
719719
this.astNode = config.astNode;
720720
this.extensionASTNodes = config.extensionASTNodes ?? [];
721721

722-
this._fields = () => defineFieldMap(config);
723-
this._interfaces = () => defineInterfaces(config);
722+
// prettier-ignore
723+
// FIXME: blocked by https://github.com/prettier/prettier/issues/14625
724+
this._fields = (defineFieldMap<TSource, TContext>).bind(undefined, config);
725+
this._interfaces = defineInterfaces.bind(undefined, config);
724726
}
725727

726728
get [Symbol.toStringTag]() {

0 commit comments

Comments
 (0)