We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea428a commit f8d1082Copy full SHA for f8d1082
docs/reference/content/driver-async/getting-started/quick-start-pojo.md
@@ -151,7 +151,8 @@ There are multiple ways to set the `pojoCodecRegistry` for use:
151
- You can set it when instantiating a MongoClient object:
152
153
```java
154
- MongoClient mongoClient = new MongoClient("localhost", MongoClientOptions.builder().codecRegistry(pojoCodecRegistry).build());
+ MongoClient mongoClient = MongoClients.create(MongoClientSettings.builder()
155
+ .codecRegistry(pojoCodecRegistry).build());
156
```
157
158
- You can use an alternative `CodecRegistry` with a `MongoDatabase`:
0 commit comments