Are you an LLM? You can read better optimized documentation at /guide/extensions/mongo.md for this page in Markdown format
Mongo
The Mongo extension provides support for MongoDB, implementing the following interfaces:
EventStoreEventStreamQueryServiceSnapshotRepositorySnapshotQueryServicePrepareKey
Installation
kotlin
implementation("me.ahoo.wow:wow-mongo")
implementation("org.springframework.boot:spring-boot-starter-data-mongodb-reactive")groovy
implementation 'me.ahoo.wow:wow-mongo'
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb-reactive'xml
<dependency>
<groupId>me.ahoo.wow</groupId>
<artifactId>wow-mongo</artifactId>
<version>${wow.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
</dependency>Configuration
- Configuration class: MongoProperties
- Prefix:
wow.mongo.
| Name | Data Type | Description | Default Value |
|---|---|---|---|
enabled | Boolean | Whether to enable | true |
auto-init-schema | Boolean | Whether to auto-generate Schema | true |
event-stream-database | String | Event stream database name | Database name configured by Spring Boot Mongo module |
snapshot-database | String | Snapshot database name | Database name configured by Spring Boot Mongo module |
prepare-database | String | PrepareKey database name | Database name configured by Spring Boot Mongo module |
YAML Configuration Example
yaml
wow:
mongo:
enabled: true
auto-init-schema: true
event-stream-database:
snapshot-database:
prepare-database: