-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: 3.6
-
Component/s: manual
-
Labels:
-
0.5
Hi Team
I had a very hard finding how to query documents that satisfy (or not) a jsonSchema.
Asya gave me the code :
`db.collection.find({$jsonSchema:{<schema-here>}})` to find matching and `db.collection.find({$nor:[{$jsonSchema:{<schema-here>}}]})` to find non-matching.
Yet in the $jsonSchema page of our documentation, it lacks code examples in my opinion :
https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/#op._S_jsonSchema
I would suggest to add the above queries examples