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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.4.7
    • None
    • None
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: