bguerout/jongo

Deprecated method in the official documentation

RodrigoCSoares opened this issue · 1 comments

Hello!

In the "Set Up" section of the official documentation, there is a deprecated method (MongoClient.getDB) in the example:

DB db = new MongoClient().getDB("dbname");

Jongo jongo = new Jongo(db);
MongoCollection friends = jongo.getCollection("friends");

MongoCursor<Friend> all = friends.find("{name: 'Joe'}").as(Friend.class);
Friend one = friends.findOne("{name: 'Joe'}").as(Friend.class);
stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.