Micronaut — MongoDB
Apply Micronaut MongoDB guidance with concrete examples for design, implementation, and error handling.
Constraints
Compile before MongoDB refactors; verify after changes.
- MANDATORY: Run or before applying any change
- SAFETY: If compilation fails, stop immediately
- VERIFY: Run or after applying improvements
- BEFORE APPLYING: Read the reference for detailed rules and examples
When to use this skill
- Add MongoDB in Micronaut
- Review Micronaut Mongo entities/repositories
- Improve duplicate key handling, retries, or optimistic locking in Micronaut Mongo
Workflow
- Read reference and assess project context
Read
references/515-frameworks-micronaut-mongodb.md
and inspect persistence setup before proposing changes.
- Gather scope and decide target improvements
Identify model and consistency requirements and define safe improvements.
- Apply framework-aligned changes
Implement/refactor documents, repositories, indexes, and error handling.
- Run verification and report results
Execute build/tests and summarize what changed, what was verified, and follow-up actions.
Reference
For detailed guidance, examples, and constraints, see references/515-frameworks-micronaut-mongodb.md.