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

Unclear documentation on use of reserved words in MongoDB shell

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • tools
    • None

    Description

      There doesn't appear to be any documentation on the use of restricted words in collection names in the MongoDB shell, including some commonly used words.

      Example keywords that might be commonly used for collections:

      group
      auth
      stats
      version
      password
      prototype

      When attempting, e.g. an insert into db.stats the error
      db.stats.insert is not a function is returned

      Attachments

        Activity

          People

            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            steffan.mejia@mongodb.com Steffan Mejia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 17 weeks, 6 days ago