MCPcopy Index your code
hub / github.com/eggjs/examples / create

Method create

sequelize/app/service/user.js:22–24  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

20 }
21
22 async create(user) {
23 return this.ctx.model.User.create(user);
24 }
25
26 async update({ id, updates }) {
27 const user = await this.ctx.model.User.findByPk(id);

Callers 4

UserModal.jsxFile · 0.45
user.test.jsFile · 0.45
post.test.jsFile · 0.45
post.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected