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") }}
1
vote
Nuri
shared this idea