Include schema validation events in changestream payload
let's say my document has JSON schema validation like:
{
$jsonSchema: {
properties: {
phone: {
bsonType: 'string'
}
}
}
}
and the validation action is set to "warning", if I do a command like: db.test.insert({"phone":1}), I would like the warning message to be included in my change stream.
4
votes
![](https://secure.gravatar.com/avatar/9677bbcdea8944380205763572c245dc?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
This is not likely to be supported any time soon. Change Streams report durable writes, in this case write didn't happen.