Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories IDEs
Created by Guest
Created on Aug 2, 2023

Add ability to go from Extended JSON to JS and vice-versa.

It would be nice to have a way to take an expression in EJSON and convert it to "plain" JS. The motivativation is that sometimes we get large blocks of aggregation pipelines already in EJSON, but want to express them as JS code without EJSON, or vice-versa. A command / shortcut / refactor method to highlight some text that is in format A and convert to format B would be nice. ``` {x: {$ne: {"$objectid": "AAAAAAAABBBBBBBBCCCCCCCC"}}} -------------^^^^^^^^^^^^^^^^^^ "Convert From EJSON..." {x: {$ne: ObjectId("AAAAAAAABBBBBBBBCCCCCCCC") }} ```