Search code examples
javascriptshellmongodbstdinreadline

MongoDB shell: reading a line from the console


Is there a way to read a line from the Mongo shell? readline() is not defined and neither is system.stdin.

I need to do this in interactive mode, as opposed to feeding input to a script executed by the MongoDB shell.


Solution

  • Per @Stennie's comment, this is not possible right now.