Fix N+1 featureFlags (#10371)

## Context
featureFlag query was done for each record returned by the ORM and
transformed in the QueryResultGettersFactory which was causing an N+1
This commit is contained in:
Weiko
2025-02-20 19:32:30 +01:00
committed by GitHub
parent 05d00e6604
commit c0fda41519
2 changed files with 17 additions and 6 deletions

View File

@ -170,6 +170,7 @@ export abstract class GraphqlQueryBaseResolverService<
objectMetadataItemWithFieldMaps,
authContext.workspace.id,
options.objectMetadataMaps,
featureFlagsMap[FeatureFlagKey.IsNewRelationEnabled],
);
const resultWithGettersArray = Array.isArray(resultWithGetters)