Replies: 2 comments
-
I'm not sure I understand what you mean. The |
Beta Was this translation helpful? Give feedback.
-
The function call to this.catModel.remove({ id }) is correct if the intention is to delete a document directly at the database layer using the model. ✅ Key Points: If direct database access is intended, calling this.catModel.remove() is fine. |
Beta Was this translation helpful? Give feedback.
-
testing-nestjs/apps/mongo-sample/src/cat/cat.service.ts
Line 72 in f33ae43
I could be wrong, but shouldn't you call the "delete" Function from the cat.controller.ts within this subproject? This can only work because this is a monorepo or am I missing something here?
Beta Was this translation helpful? Give feedback.
All reactions