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
Mis à jour 3/1/2026
Étoiles
7
Forks
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.

Installation
$ install --globalskills.sh
Utilisation

Après l'installation, vous pouvez utiliser ce skill en exécutant la commande suivante dans votre terminal :

skills use mongodb-query-patterns