0

In a MongoDB shell when I hit the tab key twice you get all the available options for autocompletion. Is there a way to get these options inside NodeJS?

Glen Selle
  • 3,966
  • 4
  • 37
  • 59
King Julien
  • 10,981
  • 24
  • 94
  • 132
  • You mean inside your IDE? – xaviert Dec 25 '15 at 18:59
  • No, I want to create a simple mongodb manager app. There should be an option to run custom commands, like `db.getCollection('somthing').find()` and when users starts typing `db.getColl` I want to show autocomplete options and offer `db.getCollection` – King Julien Dec 25 '15 at 19:31
  • Erm you mean something like an shell? Which can be used remotely? And provides authentication? With all schemes provided by mongoDB? Well, you might want to have a look [here](https://github.com/mongodb/mongo/tree/master/src/mongo/shell). Suggestion: do not reinvent the wheel. – Markus W Mahlberg Dec 25 '15 at 21:07
  • I just want to get the output of double clicking the tab key in mongo into nodejs. Is that possible? – King Julien Dec 25 '15 at 21:29

0 Answers0