MCPcopy Create free account
hub / github.com/Braineanear/EcommerceAPI / create

Function create

monolithic/src/app/shared/services/base.service.ts:16–18  ·  view source on GitHub ↗
(doc: Partial<T>, user?: any)

Source from the content-addressed store, hash-verified

14 protected debuggerService: DebuggerService;
15
16 async create(doc: Partial<T>, user?: any): Promise<T> {
17 return this.repository.create(doc);
18 }
19
20 async findById(id: string | Types.ObjectId): Promise<T> {
21 const result = await this.repository.findById(id);

Callers

nothing calls this directly

Calls 1

createMethod · 0.65

Tested by

no test coverage detected