createCollection does not fail on invalid arguments

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.0.4
    • Component/s: JavaScript, Shell
    • None
    • ALL
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      When passing invalid keys and values to the second argument of createCollection it fails to return with an error stating incorrect options have been passed to function. See this example code which returns and

      {"ok": 1}

      response.

      db.createCollection('example',

      {invalidKey: ''invalidValue"}

      )

            Assignee:
            Unassigned
            Reporter:
            Simon R
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: