Loading...
Loading...
This skill should be used when user asks to "query MongoDB", "show database collections", "get collection schema", "list MongoDB databases", "search records in MongoDB", or "check database indexes".
npx skill4agent add fcakyon/claude-codex-settings mongodb-usage$match$project$limit$lookup$facet// Filter documents
{ $match: { status: "active" } }
// Reshape documents
{ $project: { name: 1, total: { $sum: "$items.price" } } }
// Group and aggregate
{ $group: { _id: "$category", count: { $sum: 1 } } }
// Sort results
{ $sort: { count: -1 } }
// Join collections
{ $lookup: { from: "orders", localField: "_id", foreignField: "userId", as: "orders" } }mongodb+srv://user:pass@cluster.mongodb.net/databasemongodb://localhost:27017/databasemongodb://host1,host2,host3/database?replicaSet=rs0