MongoDB SyntaxError: missing ; before statement @(shell)

后端 未结 3 817
自闭症患者
自闭症患者 2020-12-15 04:13

When I try to invoke methods of a collection, why is there an error of SyntaxError: missing ; before statement @(shell)? Thanks.

$ mongo
MongoDB         


        
3条回答
  •  长情又很酷
    2020-12-15 04:58

    According to documentation

    Collection names should begin with an underscore or a letter character

    Check here or here how to remove or access your wrongly named collection.

提交回复
热议问题