Several result views when executing script with several queries

Sergey Berezovskiy shared this idea 8 years ago
Completed

When I execute a script with several queries in Robomongo, results are displayed in separate windows splitted horizontally (by default) or vertically. I didn't find the way to execute such scripts in Mongobooster. E.g.


  1. var ids = [1,2,3];
  2. db.Users.find({_id:{$in: ids}});
  3. db.Posts.find({author:{$in: ids}});

I would expecte two results window to appear, but Mongobooster shows only results from Posts collection.

Replies (6)

photo
3

Hi Sergey,


We'll consider this. In current version, you could use print like below to show multiple result.

  1. var ids = [1,2,3];
  2. print(db.Users.find({_id:{$in: ids}}).toArray());
  3. print(db.Posts.find({author:{$in: ids}}).toArray());

photo
1

Thanks for this workaround! Though consider dumping results in separate windows - it will allow to use not only json view, but also table and tree views. Anyway, thanks for saving me some space for other tabs :)

photo
1

Hi Sergey,


This feature to display the results of multiple queries will be very useful. RoboMongo and MongoChef have that option, so I write the query in MongoBooster but then use RoboMongo to execute the queries so that I can see the multiple results. It would be nice to have this feature in MongoBooster so that I can use only MongoBooster.

photo
1

This would be an example of how the multiple record sets would display. This would be extremely helpful and also it the common behavior for most database IDE. Thank you so much for your consideration. This would just make the already great product even better.


2e300addd8d19385c96d1cb6aa39f992

photo
1

This feature should definitely be implemented. Most other IDE already do this.

photo
1

Resolved in version 8.0

Leave a Comment
 
Attach a file