[docs][mongodb] Update document about MongoDB database and collection regex filter (#1090)

pull/1110/head
Jiabao Sun 3 years ago committed by GitHub
parent df4f6f4660
commit 4fcb05fb05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -369,8 +369,8 @@ public class MongoDBSourceExample {
.hosts("localhost:27017")
.username("flink")
.password("flinkpw")
.database("inventory")
.collection("products")
.databaseList("inventory") // set captured database, support regex
.collectionList("inventory.products", "inventory.orders") //set captured collections, support regex
.deserializer(new JsonDebeziumDeserializationSchema())
.build();
@ -384,6 +384,8 @@ public class MongoDBSourceExample {
}
```
**Note:** If database regex is used, `readAnyDatabase` role is required.
Data Type Mapping
----------------

Loading…
Cancel
Save