MCPcopy
hub / github.com/eggjs/examples / get

Function get

unittest/app/service/user.js:14–21  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

12
13const userDatabase = {
14 async get(name) {
15 for (const user of mockUsers) {
16 if (user.name === name) {
17 return user;
18 }
19 }
20 return null;
21 },
22};
23
24class User extends Service {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected