MCPcopy Index your code
hub / github.com/directus/directus / createOne

Method createOne

api/src/services/operations.ts:10–17  ·  view source on GitHub ↗
(data: Partial<Item>, opts?: MutationOptions)

Source from the content-addressed store, hash-verified

8 }
9
10 override async createOne(data: Partial<Item>, opts?: MutationOptions): Promise<PrimaryKey> {
11 const result = await super.createOne(data, opts);
12
13 const flowManager = getFlowManager();
14 await flowManager.reload();
15
16 return result;
17 }
18
19 override async updateMany(keys: PrimaryKey[], data: Partial<Item>, opts?: MutationOptions): Promise<PrimaryKey[]> {
20 const result = await super.updateMany(keys, data, opts);

Callers 1

handlerFunction · 0.95

Calls 3

getFlowManagerFunction · 0.85
createOneMethod · 0.65
reloadMethod · 0.45

Tested by

no test coverage detected