-
Type: Task
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
Empty show more show less
-
Not Needed
NODE-4299 Description
How are you using Mongo? What version of the server and driver are you using?
I'm currently using master branch at this commit in order to have available this feature.
What is the feature/improvement you would like?
If user executes an operation with a comment, that comment should be available in the change stream generated by that operation.
For example:
const ok = await collection.deleteOne({ name: 'foobar' }, { comment: 'my comment' })
the comment "my comment" should be available in the change stream.
What use case would this feature/improvement enable?
If you have a service performing delete operation when an API is called, you may want to use the change stream to made audit log. In order to audit who made that request you could use "comment" field to store the userId that performed the delete request.
- is depended on by
-
NODE-4299 comment of an operation should be sent in the change stream of that operation
- Closed