Hexaware Technologies interview question

write a code in mongodb for displaying all records