NestJS Mongoose ODM Snippets for VSCode Editor
Snippets for Mongoose ODM and NestJS for faster development. This extension for Visual Studio Code adds snippets for Mongoose ODM for NestJS development.
Requirements
- VSCode 1.46.0 or later
Usage
Snippets
Type part of snippet, press Tab
or Enter
, and the snippet unfolds. Below is a list of the most important shortcuts.
Snippet | Purpose |
---|---|
ns_mongoose_deco_schema | @Schema() export class Document {} |
ns_mongoose_deco_prop | @Prop() |
ns_mongoose_inject_model | @InjectModel(...) private Model: Model<> |
ns_mongoose_inject_connection | @InjectConnection() private connection: Connection |
ns_mongoose_schema_types_object_id | mongoose.Schema.Types.ObjectId |
ns_mongoose_find_one | ... = await this.Model.findOne({ ... }).exec(); |
ns_mongoose_find_by_id | ... = await this.Model.findById(id).exec(); |
ns_mongoose_find | ... = await this.Model.find({ ... }); |
ns_mongoose_create | const ... = new this.Model(...);return ...; |
Connect with me
Other Extensions
- NestJS File Generator for VSCode
- NestJS Snippets for VSCode Editor
- Angular File Generator for VSCode Editor
- React / NextJS / T3 Stack File Generator
- Nx / Angular / Nest / Next Essential Extension Pack
- CodeIgniter 4 Snippets for Visual Studio Code
- CodeIgniter 4 Spark for Visual Studio Code
- Moodle Pack
- Mustache Template Engine - Snippets & Autocomplete
Changelog
See CHANGELOG.md
Authors
- Manuel Gil - Owner - ManuelGil
See also the list of contributors who participated in this project.
License
NestJS Mongoose ODM Snippets for VSCode is licensed under the MIT License - see the MIT License for details.