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 4296d62 commit 806fc35Copy full SHA for 806fc35
docs/reference/content/driver-async/getting-started/quick-start-pojo.md
@@ -140,8 +140,8 @@ to handle the translation to and from [`bson`]({{< relref "bson/index.md" >}}) f
140
141
The following example will combine the default codec registry, with the `PojoCodecProvider` configured to automatically create `PojoCodecs`:
142
```java
143
-CodecRegistry pojoCodecRegistry = fromRegistries(MongoClient.getDefaultCodecRegistry(),
144
- fromProviders(PojoCodecProvider.builder().automatic().build()));
+CodecRegistry pojoCodecRegistry = fromRegistries(MongoClients.getDefaultCodecRegistry(),
+ fromProviders(PojoCodecProvider.builder().automatic(true).build()));
145
```
146
147
### Using the CodecRegistry
0 commit comments