Mongo Snippets for Node-js installs statistics
By Rohan Mukherjee · VS Code Marketplace · Snippets
Provides snippets, boilerplate code for Mongo queries and completion suggestions for mongoose models.
Mongo Snippets for Node-js has 338,808 recorded installs on VS Code Marketplace, ranking #1072 of 2,501 tracked listings.
Rating: 4.69 / 5 from 13 ratings
About Mongo Snippets for Node-js
Mongo Snippets
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> <!-- ALL-CONTRIBUTORS-BADGE:END -->vscode-id: roerohan.mongo-snippets-for-node-js
This Visual Studio Code extension is built for Node-js projects. It provides:
- Code Snippets for MongoDB Connection and queries.
- Command Palette Feature to Set up Boilerplate Code.
- Completion Suggestions for Mongoose Models.
- Mongo Connect directly from the editor.

Table of Contents:
Features
Command Palette:
Note: Ctrl+Shift+P or Command+Shift+P opens Command Palette in VSCode.
-
Mongo Snippets: Refer to Mongoose Documentation
- Opens the Mongoose Documentation on a web browser.
-
Mongo Snippets: Refer to Extension Documentation
- Opens the Repository on a web browser.
-
Mongo Snippets: Set up Mongo Boilerplate Code
- Creates folders named
routesandmodels- if they do not exist - in thesource directory, and adds files containing boilerplate code.
- Creates folders named
-
Mongo Snippets: Show Existing Models
- Shows a list of names of models present in the
modelsfolder in thesource directory. - Highlights the model definition in the file where it had been created.
- Shows a list of names of models present in the
-
Mongo Snippets: View MongoDB Collection as JSON
Note: This is a beta feature and will be receive updates soon.
- Connect to a MongoDB instance using a connection string and view a DB as a JSON.
Completion Suggestions:
Note: See User's Notes for details.
- Model name suggestions:
- First it identifies the names of the models in a folder named models (if any) in the
source directory. - It stores the model and field names and provides completion suggestions when you type.
- Suggests field names for models. E.G. if the model
Userhas a fieldname, on typingUser.,nameis suggested. - Field names are also suggested inside
{...}.
- First it identifies the names of the models in a folder named models (if any) in the
Snippets:
The following are some of the snippets that can be generated with this extension.
Note: Type the following snippets and press 'Tab' OR 'Ctrl/Command + Space; Enter' for auto-completion.
| Type/No. | Snippet | Stands For | Function |
|---|---|---|---|
| Generic: | |||
| 1. | !mdbc | MongoDB Connect | MongoDB connect on port 27017 |
| 2. | !mdbgum | MongoDB Generate User Model | Generate typical user model |
| 3. | !mdba | MongoDB Aggregate | Model.aggregate query |
| 4. | !mdbcd | MongoDB CountDocuments | Model.countDocuments query |
| 5. | !mdbmr | MongoDB MapReduce | Model.mapReduce query |
| 6. | !mdbp | MongoDB Populate | Model.populate query |
| 7. | !mdbbw | MongoDB BulkWrite | Model.bulkWrite query |
| Create/Insert: | |||
| 1. | !mdbcr | MongoDB Create | Model.create query |
| 2. | !mdbcc | MongoDB CreateCollection | Model.createCollection query |
| 3. | !mdbim | MongoDB InsertMany | Model.insertMany query |
| Find: | |||
| 1. | !mdbf | MongoDB Find | Model.find query |
| 2. | !mdbfo | MongoDB FindOne | Model.findOne query |
| 3. | !mdbfbi | MongoDB FindById | Model.findById query |
| Replace: | |||
| 1. | !mdbro | MongoDB ReplaceOne | Model.replaceOne query |
| Update: | |||
| 1. | !mdbfoau | MongoDB FindOneAndUpdate | Model.findOneAndUpdate query |
| 2. | !mdbuo | MongoDB UpdateOne | Model.updateOne query |
| 3. | !mdbum | MongoDB UpdateMany | Model.updateMany query |
| Delete: | |||
| 1. | !mdbfoad | MongoDB FindOneAndDelete | Model.findOneAndDelete query |
| 2. | !mdbdo | MongoDB DeleteOne | Model.deleteOne query |
| 3. | !mdbdm | MongoDB DeleteMany | Model.deleteMany query |
| Methods and Statics: | |||
| … |
Description from the VS Code Marketplace listing.
- javascript
- Mongo
- MongoDB
- mongoose
- mongoose-js
- node
- NoSQL
- snippet
- snippets
- typescript
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (5)Similar VS Code Marketplace Snippets plugins
All 20 Mongo Snippets for Node-js alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=roerohan.mongo-snippets-for-node-js. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.