It´s posible to add a validation rule, that allows me to require one of two posibble fields?
Example of the validation I need:
{
phone :{
bsonType: ‘string’
}
OR
email : {
bsonType: ‘string’
}
}
I need that the schema require at least one (phone or email).