mongoengine-goodjson icon indicating copy to clipboard operation
mongoengine-goodjson copied to clipboard

convert pipeline query result to JSON?

Open brtasavpatel opened this issue 4 years ago • 4 comments

If I use aggregation pipeline. query result comes back as a dictionary instead of a mongo document object. Is there a way to convert that dict result to goodjson format? because using bson.dumps produces inconsistent results with current goodjson format.

brtasavpatel avatar Dec 05 '19 23:12 brtasavpatel

Unfortunately, there's no method atm, but I'm interested in implementing it.

hiroaki-yamamoto avatar Dec 06 '19 16:12 hiroaki-yamamoto

thanks. I'll go through the code and see if I can contribute for that.

brtasavpatel avatar Dec 16 '19 23:12 brtasavpatel

Hi guys, is there any updates about this ?

Thanks

rlaurente avatar Sep 28 '20 09:09 rlaurente

any updates on this?

brtasavpatel avatar Aug 16 '21 16:08 brtasavpatel