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:
@ -105,18 +105,14 @@ export class QueryRunnerArgsFactory {
|
|||||||
(args as UpdateManyResolverArgs).filter,
|
(args as UpdateManyResolverArgs).filter,
|
||||||
fieldMetadataMapByNameByName,
|
fieldMetadataMapByNameByName,
|
||||||
),
|
),
|
||||||
data: await Promise.all(
|
data: await this.overrideDataByFieldMetadata(
|
||||||
(args as UpdateManyResolverArgs).data?.map((arg, index) =>
|
(args as UpdateManyResolverArgs).data,
|
||||||
this.overrideDataByFieldMetadata(
|
options,
|
||||||
arg,
|
fieldMetadataMapByNameByName,
|
||||||
options,
|
{
|
||||||
fieldMetadataMapByNameByName,
|
argIndex: 0,
|
||||||
{
|
shouldBackfillPosition: false,
|
||||||
argIndex: index,
|
},
|
||||||
shouldBackfillPosition: false,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
) ?? [],
|
|
||||||
),
|
),
|
||||||
} satisfies UpdateManyResolverArgs;
|
} satisfies UpdateManyResolverArgs;
|
||||||
case ResolverArgsType.FindOne:
|
case ResolverArgsType.FindOne:
|
||||||
|
|||||||
Reference in New Issue
Block a user