Entrypoints
This is the public entry point to start execution context, Query, Search, Vector Search, and root aggregation in Reactive Mongo DSL 1.0.0.
Create ReactiveMongoDsl
MongoTemplateResolver<K>#getTemplate(K)
Return the MongoExecutionContext corresponding to the key.
getMongoTemplate(K)
Retrieve the MongoExecutionContext for the current key through the resolver.
getTxJob(K, Supplier<Mono<...>>)
Execute DSL transaction based on ClientSession.
Execution builders
executeEntity(Class<E>, K)
Select collection/mapping context with entity class and resolver key.
executeCustomClass(Class<E>, K, String)
Specify the result type and physical collection name directly.
Builder entry point
fields(...) / fields()
Construct general Mongo conditions with FieldsPair and logical grouping.
driverFilter(Bson)
Pass the MongoDB Driver filter directly as general query conditions.
search([index])
Start the builder dedicated to Atlas Search.
vectorSearch(index)
Start the builder dedicated to Vector Search.
aggregation()
Start root aggregation by configuring the first stage of the pipeline with Driver-native Bson.
Operations possible without a condition builder.
save(E) / saveAll(...)
Apply insert/replace at the entity level and save lifecycle hooks.
saveAllBulk(...)
Bulk insert based on insertMany.
saveAllBulkUpsert(...)
Unordered bulk upsert based on entity id.
saveAllBulkUpsertByKey(...)
Unordered bulk upsert based on business composite key.
delete(entity[, backup]) / deleteBulk(...)
entity 삭제와 optional <collection>_remove 백업
createHistory(entity[, prefix])
Save the current document snapshot in a separate history collection.