MCPcopy Create free account
hub / github.com/axe-api/axe-api / update

Method update

packages/axe-api/src/Services/ElasticService.ts:31–36  ·  view source on GitHub ↗
(modelName: string, id: string, doc: any)

Source from the content-addressed store, hash-verified

29 }
30
31 async update(modelName: string, id: string, doc: any) {
32 const index = this.toIndex(modelName);
33 const result = await this.client.update({ index, id: id.toString(), doc });
34 LogService.debug(`\t🔄 ES.update(${index}) => ${id}`);
35 return result;
36 }
37
38 async delete(modelName: string, id: string) {
39 const index = this.toIndex(modelName);

Callers 3

ActionPhase.tsFile · 0.80
ActionPhase.tsFile · 0.80
toCacheKeyFunction · 0.80

Calls 2

toIndexMethod · 0.95
debugMethod · 0.80

Tested by

no test coverage detected