Setting up the Native MongoDB Driver
Micronaut includes a configuration to automatically configure the native MongoDB Java driver. To use this configuration, add the following dependency to your application:
Configuring a MongoDB server
The follows the MongoDB Connection String format. |
To use the blocking driver, add a dependency to your application to the mongo-java-driver.
See the documentation for further information on configuring and using MongoDB within Micronaut.