There seems to be a pretty annoying difference in the new mongosh in comparison to the legacy mongo shell. I am wondering if there is an option to be able to set this to match the legacy shell or if I should open up a ticket
legacy shell:
{a: {b: {c: {d: {e: [{test:{test:“test”}}]}}}}}
{
"a" : {
"b" : {
"c" : {
"d" : {
"e" : [
{
"test" : {
"test" : "test"
}
}
]
}
}
}
}
}
Mongosh:
test = {a: {b: {c: {d: {e: [{test:{test:“test”}}]}}}}}
{
a: {
b: {
c: {
d: { e: [ { test: [Object] } ] }
}
}
}
}
I suppose what is gained by readability is lost in introspection and reflection. I vastly prefer being able to view my embedded objects and take actions on them when necessary.
Has anyone found a workaround for this behavior?