I have the export of a collection that has some documents, I need to export one of these documents and its size. I've tried something like this:
mongoexport -d test -c records -q '{ a: { $gte: 3 } }' --out exportdir/myRecords.json
Do not roll what I need.
Is there a function that returns the size of a document in the mongodb collection?