Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31493

JSON Schema incorrectly treats dotted field names as paths

    • Query Optimization
    • ALL
    • Query 2017-11-13, Query 2020-07-13, Query 2020-07-27

      > db.test.find()
      { "_id" : ObjectId("59dcfc510d45ac010df64f5f"), "a.b" : 1 }
      > db.test.find({$jsonSchema: {properties: {'a.b': {type: 'number'}}, required: ['a.b']}})
      > 
      

      There are several similar tickets, but this is meant to track the behavior specifically within a $jsonSchema validator.

            Assignee:
            backlog-query-optimization Backlog - Query Optimization
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: