home/categories/nosql-databases/9tykeshav-mern-ninja-cc-skills-mongodb-query-patterns-skill-md
nosql-databasesdatabases

mongodb-query-patterns

Use when writing ANY Mongoose query (.find, .findOne, .findById, .aggregate, .populate), adding database operations to services or controllers, wiring data between services, building endpoints that read or write to MongoDB, or reviewing code that chains service calls. TRIGGER especially when about to write a new findById or pass an ID where a document could be passed instead.

9tykeshav
maintainer
9tykeshav
更新於 3/1/2026
星標
7
分支
0
quick start

Installation and usage

Use when writing ANY Mongoose query (.find, .findOne, .findById, .aggregate, .populate), adding database operations to services or controllers, wiring data between services, building endpoints that read or write to MongoDB, or reviewing code that chains service calls. TRIGGER especially when about to write a new findById or pass an ID where a document could be passed instead.

安裝
$ install --globalskills.sh
使用

安裝後,您可以通過在終端運行以下命令來使用此技能:

skills use mongodb-query-patterns