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
Ethan
shared this idea
-
This is not likely to be supported any time soon. Change Streams report durable writes, in this case write didn't happen.