Automattic / Automattic/mongoose
Feature: Add hooks all mongodb related operations
- Dominant language
- JavaScript
- Stars
- 27.5k
- Forks
- 4k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 35
Description
**Do you want to request a *feature* or report a *bug*?**
Feature
**What is the current behavior?**
Currently, middleware coverage is incomplete, such as some operations like 'bulkSave', 'bulkWrite', 'exists', 'distinct', 'watch' that have no middleware to trigger.
I can't do it when I need to intercept and process all mongodb related operations.
Or another way of thinking, because all operations are related to Document, Model, Query and Aggregate, can we provide these types of interception for developers to use the unified interception tools.
**What is the expected behavior?**
All mongodb related operations can be intercepted and processed.
Contributor guide
Research direction
Start by mapping the existing middleware coverage for the named operations: bulkSave, bulkWrite, exists, distinct, and watch, across the Document, Model, Query, and Aggregate types mentioned in the issue. Define the interception scope and verify that each targeted MongoDB operation can be processed through a consistent hook mechanism.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, mongodb, node.js
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100