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

The dollar ($) prefixed field is not valid for storage

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.7
    • Component/s: None
    • Labels:
      None
    • ALL

      MongoDB does not allowed to store a key prefixed with dollar symbol.
      Eg.

      {'$push' : {'$in' : [200, 201]}}
      

      Error message is: 

      MongoError: The dollar ($) prefixed field '$in'  is not valid for storage.
      

      In my case, this was happened when trying to update a document which is already exist.

            Assignee:
            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            Reporter:
            andru2222 Muthu Prabu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: