I have a collection (i.e insurance) in Mongo DB. The database is present in a cloud server. I am accessing the database through Mongo Db compass. When trying to add a validation rule on insurance collection.

No error is showing on submit.

No sure what is happening. any help is much appreciated.Thanks