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

Unclear documentation on use of reserved words in MongoDB shell

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: tools
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved:
              6 years, 28 weeks, 4 days ago