mongodb

Installation
Summary

MongoDB and Mongoose schema design, querying, aggregation pipelines, and performance optimization.

  • Covers both native MongoDB driver and Mongoose ODM with connection setup, CRUD operations, and graceful shutdown patterns
  • Schema design guidance including embedded vs. referenced documents, virtuals, validation, indexes, and text search configuration
  • Query operations with 20+ operators (comparison, logical, array, regex) plus find, update, and upsert patterns with query builders
  • Aggregation pipeline stages ($match, $group, $lookup, $unwind, $facet) with real-world examples for sales analytics and top-product queries
  • Middleware hooks, transactions, bulk operations, cursor iteration for large datasets, and Atlas-specific features like full-text and vector search
SKILL.md

MongoDB & Mongoose

Build and query MongoDB databases with best practices.

Quick Start

npm install mongodb mongoose

Native Driver

import { MongoClient, ObjectId } from 'mongodb';

const client = new MongoClient(process.env.MONGODB_URI!);
const db = client.db('myapp');
const users = db.collection('users');
Related skills

More from hoodini/ai-agents-skills

Installs
1.3K
GitHub Stars
209
First Seen
Jan 22, 2026