Can't access collection from the shell - SyntaxError: missing ; before statement (shell):1

前端 未结 3 390
眼角桃花
眼角桃花 2021-01-17 23:51

I wrote a script that uses mongoimport to load csv files into mongodb. When I run this for two similar csv files (of the same type) both upload fine, however I can only acce

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-18 00:13

    This works for me when my collection names include special characters:

    db["3mLgQAYJCq6_20110802"].findOne();
    

提交回复
热议问题