A behavior similar to mongosh where we establish a stateful session once and then run arbitrary statements any number of times without having to use('db') every time would be desirable.
I reckon for most users this would be the frequent use case. Often times we would go back to a previous statement and run just that. Such a feature would definitely be useful.
Having to use db.getSiblingDB('db').getCollection('coll') in every line feels like we are not in a shell but writing some application code.
A behavior similar to mongosh where we establish a stateful session once and then run arbitrary statements any number of times without having to use('db') every time would be desirable.
I reckon for most users this would be the frequent use case. Often times we would go back to a previous statement and run just that. Such a feature would definitely be useful.
Having to use db.getSiblingDB('db').getCollection('coll') in every line feels like we are not in a shell but writing some application code.