| // Do not edit directly! |
| // This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page |
| |
| [[mongodb]] |
| = MongoDB |
| |
| [.badges] |
| [.badge-key]##Since Camel Quarkus##[.badge-version]##1.0.0-M1## [.badge-key]##JVM##[.badge-supported]##supported## [.badge-key]##Native##[.badge-supported]##supported## |
| |
| Perform operations on MongoDB documents and collections. |
| |
| == What's inside |
| |
| * https://camel.apache.org/components/latest/mongodb-component.html[MongoDB component], URI syntax: `mongodb:connectionBean` |
| |
| Please refer to the above link for usage and configuration details. |
| |
| == Maven coordinates |
| |
| [source,xml] |
| ---- |
| <dependency> |
| <groupId>org.apache.camel.quarkus</groupId> |
| <artifactId>camel-quarkus-mongodb</artifactId> |
| </dependency> |
| ---- |
| |
| Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. |
| |
| == Additional Camel Quarkus configuration |
| |
| The extension leverages the https://quarkus.io/guides/mongodb[Quarkus MongoDB Client] extension. The Mongo client can be configured |
| via the Quarkus MongoDB Client https://quarkus.io/guides/mongodb#configuration-reference[configuration options]. |
| |
| The Camel Quarkus MongoDB extension automatically registers a MongoDB client bean named `camelMongoClient`. This can be referenced in the mongodb endpoint URI |
| `connectionBean` path parameter. For example: |
| |
| from("direct:start") |
| .to("mongodb:camelMongoClient?database=myDb&collection=myCollection&operation=findAll") |
| |