2

Is there a way in the mongo shell to list all variables that have been created so far. E.g. when I create a bunch of variables like

var myDocument = db.myCollection.find({"awards.wins":8});
var b = 20;
var a = 21;

how can I list all variables that have already been created in this session so far, or how can I list all variables that exist?

rexford
  • 5,192
  • 5
  • 27
  • 40

0 Answers0