* GH-143: Add an update option to MongoDB Supplier Fixes https://github.com/spring-cloud/stream-applications/issues/143 * * Fix Checkstyle violations * Update `README.adoc` for `mongodb-source`
27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
//tag::ref-doc[]
|
|
= MongoDB Source
|
|
|
|
This source polls data from MongoDB.
|
|
This source is fully based on the `MongoDataAutoConfiguration`, so refer to the
|
|
https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-nosql.html#boot-features-mongodb[Spring Boot MongoDB Support]
|
|
for more information.
|
|
|
|
|
|
== Options
|
|
|
|
The **$$mongodb$$** $$source$$ has the following options:
|
|
|
|
|
|
//tag::configuration-properties[]
|
|
$$mongodb.supplier.collection$$:: $$The MongoDB collection to query.$$ *($$String$$, default: `$$<none>$$`)*
|
|
$$mongodb.supplier.query$$:: $$The MongoDB query.$$ *($$String$$, default: `$${ }$$`)*
|
|
$$mongodb.supplier.query-expression$$:: $$The SpEL expression in MongoDB query DSL style.$$ *($$Expression$$, default: `$$<none>$$`)*
|
|
$$mongodb.supplier.split$$:: $$Whether to split the query result as individual messages.$$ *($$Boolean$$, default: `$$true$$`)*
|
|
$$mongodb.supplier.update-expression$$:: $$The SpEL expression in MongoDB update DSL style.$$ *($$Expression$$, default: `$$<none>$$`)*
|
|
//end::configuration-properties[]
|
|
|
|
Also see the https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html[Spring Boot Documentation] for additional `MongoProperties` properties.
|
|
See and `TriggerProperties` for polling options.
|
|
|
|
//end::ref-doc[]
|