Skip to content

Commit

Permalink
GraphQLObjectType: partial revert of #3143, due to perf regression (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Apr 3, 2023
1 parent ee303a8 commit a68dc42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/type/definition.ts
Expand Up @@ -719,8 +719,10 @@ export class GraphQLObjectType<TSource = any, TContext = any> {
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<TSource, TContext>).bind(undefined, config);
this._interfaces = defineInterfaces.bind(undefined, config);
}

get [Symbol.toStringTag]() {
Expand Down

0 comments on commit a68dc42

Please sign in to comment.