MCPcopy
hub / github.com/directus/directus / updateMany

Method updateMany

api/src/services/operations.ts:19–26  ·  view source on GitHub ↗
(keys: PrimaryKey[], data: Partial<Item>, opts?: MutationOptions)

Source from the content-addressed store, hash-verified

17 }
18
19 override async updateMany(keys: PrimaryKey[], data: Partial<Item>, opts?: MutationOptions): Promise<PrimaryKey[]> {
20 const result = await super.updateMany(keys, data, opts);
21
22 const flowManager = getFlowManager();
23 await flowManager.reload();
24
25 return result;
26 }
27
28 override async deleteMany(keys: PrimaryKey[], opts?: MutationOptions): Promise<PrimaryKey[]> {
29 const result = await super.deleteMany(keys, opts);

Callers

nothing calls this directly

Calls 3

getFlowManagerFunction · 0.85
updateManyMethod · 0.65
reloadMethod · 0.45

Tested by

no test coverage detected