Using Morphia with new java com.mongodb.client.MongoClient interface

50 views
Skip to first unread message

Thomas V

unread,
Jun 15, 2018, 5:20:04 AM6/15/18
to Morphia
Dear all,

I am trying to use the new recommended way to create a connection to a Mongo DB using the MongoDB java driver 3.7:

MongoClient mongoClient = MongoClients.create(MongoClientSettings);

The problem is that the MongoClient returned by this factory is the new interface com.mongodb.driver.MongoClient an not the class com.mongodb.MongoClient.

I cannot find a way to use the latest version of Morphia using this new MongoClient interface.

Is there currently a way to do it or is it planned?

Thank you!


Reply all
Reply to author
Forward
0 new messages