MongoDB SyntaxError: missing ; before statement @(shell)

后端 未结 3 814
自闭症患者
自闭症患者 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 05:12

    exit from mongoshell with quit() and try to run command in regular command prompt, it will work

提交回复
热议问题