Fix queryRunnerArgsFactory for updateMany resolver (#10322)

This was updated a few weeks ago and went unnoticed since 1) integration
tests were broken + 2) we don't have actionnable updateMany mutations in
the product at the moment

It will fix some tests, at least
all-people-resolvers.integration-spec.ts for instance
This commit is contained in:
Marie
2025-02-19 10:09:27 +01:00
committed by GitHub
parent c0014cfe96
commit 645065abba

View File

@ -105,18 +105,14 @@ export class QueryRunnerArgsFactory {
(args as UpdateManyResolverArgs).filter,
fieldMetadataMapByNameByName,
),
data: await Promise.all(
(args as UpdateManyResolverArgs).data?.map((arg, index) =>
this.overrideDataByFieldMetadata(
arg,
options,
fieldMetadataMapByNameByName,
{
argIndex: index,
shouldBackfillPosition: false,
},
),
) ?? [],
data: await this.overrideDataByFieldMetadata(
(args as UpdateManyResolverArgs).data,
options,
fieldMetadataMapByNameByName,
{
argIndex: 0,
shouldBackfillPosition: false,
},
),
} satisfies UpdateManyResolverArgs;
case ResolverArgsType.FindOne: