Hello @Ilan_Toren ,
To learn more about oneOf
, please go through Video: Schema Validation and read below threads on oneOf usage.
In case you have queries or issues with this, please feel free to reach out with below details
- MongoDB Version
- Some example documents which should pass the schema validation
Regards,
Tarun