spring-boot-mongodb
Installation
SKILL.md
Spring Boot MongoDB
Overview
Expert guidance for MongoDB data access with Spring Boot 4 and Spring Data MongoDB 5.0.5. Covers the full persistence lifecycle: document mapping, repository patterns, template API, aggregation pipeline, advanced MongoDB features, and production readiness.
Key Capabilities:
- Document mapping with @Document, @Id, @Field, @DBRef, @DocumentReference
- MongoRepository and ReactiveMongoRepository patterns
- Derived, @Query, and @Aggregation query methods
- MongoTemplate and FluentMongoOperations API
- Aggregation Framework with typed pipeline stages
- Advanced features (change streams, transactions, GridFS, encryption, vector search)
- Auditing, lifecycle events, and optimistic locking
- Reactive MongoDB with ReactiveMongoTemplate and reactive repositories