mongodb

Solid

MongoDB schema design, aggregation pipelines, indexing strategies, and performance.

API & Backend 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
39
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# MongoDB Skill Expert assistance for MongoDB database design and operations. ## Capabilities - Design document schemas - Build aggregation pipelines - Create optimal indexes - Implement data modeling patterns - Configure replication and sharding ## Aggregation Pipeline ```typescript const results = await collection.aggregate([ { $match: { status: 'active' } }, { $group: { _id: '$category', total: { $sum: '$amount' } } }, { $sort: { total: -1 } }, { $limit: 10 }, ]).toArray(); ``` ## Indexing ```typescript // Compound index await collection.createIndex({ userId: 1, createdAt: -1 }); // Text index await collection.createIndex({ title: 'text', content: 'text' }); ``` ## Target Processes - mern-stack-development - database-design - backend-development

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Related Skills