FindIterable<Document> docs = userCollection.find(); for (Document document : docs) { System.out.println(document); }