Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • This adds a lot of boiler plate code, another dependency and reduces the performance of the app. It is better to ensure database consistency on the database level, which is possible with the right MongoDB function. Commented Jun 18, 2018 at 8:22
  • But sometimes we have to do multiple tasks on a selected data at that time it can be useful. Commented Jun 18, 2018 at 8:46
  • That might be. Concerning the question, this is not the case. In other, unnamed, hypothetical cases it is still questionable, if this solution is the best way. Commented Jun 18, 2018 at 9:09