Java MongoDB Query, Find All Documents in a Collection
To find all the records from a collection in MongoDB, first Insert Records in a Collection.
In the above example, collection Loan is created with 2 parameters :
1) name/type of loan
2) Interest rate
Below example will find all the records from a collection