$ 0 0 We can get the size of a document is to by using the shell’s Object.bsonsize() function.We pass the object_id of the document to get the sizeFor example in the foo collection, we can find the size of the document using any document id.