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

Method insert

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

Source from the content-addressed store, hash-verified

22 }
23
24 async insert(modelName: string, id: string, body: any) {
25 const index = this.toIndex(modelName);
26 const result = await this.client.index({ index, id: id.toString(), body });
27 LogService.debug(`\t🔄 ES.insert(${index}) => ${id}`);
28 return result;
29 }
30
31 async update(modelName: string, id: string, doc: any) {
32 const index = this.toIndex(modelName);

Callers 2

ActionPhase.tsFile · 0.80
upFunction · 0.80

Calls 2

toIndexMethod · 0.95
debugMethod · 0.80

Tested by

no test coverage detected