有没有办法从 Mongo shell 中读取一行? readline()
未定义,system.stdin
也未定义。
我需要在交互模式下执行此操作,而不是向 MongoDB shell 执行的脚本提供输入。
最佳答案
根据@Stennie 的评论,目前这是不可能的。
关于javascript - MongoDB shell : reading a line from the console,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11333248/