Back to skills
SKILL.md
Mongodb Patterns
ASecurityMongoDB schema design by access pattern: embedding vs referencing, indexes and transactions.
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added December 2, 2026
Security analysis
100/100npx -y skills add karthikrshet/saarthi --skill mongodb-patterns --agent claude-codeAre you the author of Mongodb Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-mongodb-patterns)---
name: mongodb-patterns
description: "MongoDB schema design by access pattern: embedding vs referencing, indexes and transactions."
tags: [database]
---
# Mongodb Patterns
## When to use
- MongoDB apps
## Procedure
1. Model documents around reads
2. Embed bounded one-to-few
3. Reference unbounded relations
4. Create compound indexes matching queries
5. Use schema validation
## Checklist
- [ ] Indexes cover main queries
## Anti-patterns
- Unbounded arrays in documents
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.