Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 254 Bytes

File metadata and controls

7 lines (5 loc) · 254 Bytes

Find size of document

To find out the size of a document in MongoDB you can use the Object.bsonsize() function which will display the document size in bytes, you can use it like so:

Object.bsonsize(db.users.find({"name": "Owen"}))