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 Compass
Created by Guest
Created on Apr 28, 2020

Copy as "normal" JSON

Would be nice to have ability to copy data in mongo shell compatible format. NOT like this: {"_id":{"$oid":"58a1b4496711f017c2be2c86"},"reportedBy": "$oid":"589b5cddb8843f642c09eecd"},"createdAt":{"$date":"2017-02-13T13:27:37.594Z"}} But like this: ``` { "_id" : ObjectId("58a1b4496711f017c2be2c86"), "createdAt": ISODate("2017-02-13T13:27:37.594Z")} ```
  • Attach files
  • Guest
    Jun 19, 2023
    We had this ability in Robo3T (very fast), but it's much slower in Studio 3T. I was disappointed to discover both Compass and Compass Community do not support this syntax. I'm fairly certain you can still do this from mongosh but the terminal is excruciatingly slow when pasting in very large documents. e.g. ``` mongosh use my-database db.my-collection.insert(); ```
  • Guest
    Dec 13, 2021
    It would be nice if I can simply use exported data in my code. But for the moment it is not possible. I have errors when I'm trying to import data from file. MongoBulkWriteError: _id fields may not contain '$'-prefixed fields: $oid is not valid for storage.