Hi,
According to Schema validation, I have a problem.
I can’t see more details about the error when working on the cluster:
I see that when i connect mongosh to the cluster and insert a document the collection, i only receive as error message : **MongoServerError**: Document failed validation
But when i connect to local i receive additionnal informations :
As i told in my first post, i’m connected in a cluster on atlass.
For the insertOne query, i puted 2 in the gender in order to see if the validator will show a error message according to the information that i inserted. So, it’s okey, I had this error message : MongoServerError: Document failed validation
But, mongosh does not retrun additional information in order to see where at what fileld is the error.
I’m trying the same thing (add a validation schema, insert one document that does not pass the validation), I get the same behavior (document failed validation, but not the promised detailed info at least firing the query from the console or mongo compass console), I have even tried to upgrade to 5.0.2 version, it seems that this feature is not 100% ready or am I missing something?