Repository navigation
Replies: 2 comments
|
I'm not sure I understand what you mean. The |
0 replies
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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?
All reactions