Is there a way to update collection validator like this:
let validator = db.getCollectionInfos({name: "students"})[0].options.validator;
validator.$jsonSchema.properties["mark"] = {
bsonType: "double",
description: "final mark"
};
db.runCommand({
"collMod": "students",
"validator": validator,
});
I mean, not to override whole validator, but update only needed fields