Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11459

Add examples for jsonSchema queries in online documentation

      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

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            guillaume.meister@mongodb.com Guillaume Meister (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              4 years, 42 weeks, 1 day ago