Closed malarzm closed 8 years ago
To answer your question, yes. We would absolutely merge this.
@TylerBrock applied your comments, any hints on stylings? Somehow I prefer having DBRef printed inline but that could probably use proper colours then...
Yeah the code should delegate to shellPrint()
ultimately to print the JSON objects. I didn't look closely enough at it the first time.
Found out that tojsonObject(additional, undefined, true)
will do exactly what I wanted to:
So I believe it's ready now :)
@TylerBrock ping? :)
Love it! Thank you. Sorry for the delay.
No worries and thanks!
Enhances how
DBRef
are printed since original implementation doesn't really care about showing optional$db
field not mentioning any additional fields user (or his software, in my case PHP's Doctrine ODM) may put there. Right now it looks like this (showcased all 4 combinations possible as of now, switchingmongo_hacker_config.dbref.extended_info
tofalse
will bring back shell's default):I believe styling could be improved but before I spend too much time polishing details I'd like to know whether PR will be accepted at all :)