Giter VIP home page Giter VIP logo

manuelgil / vscode-nestjs-mongoose-snippets Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.41 MB

Snippets for NestJS Mongoose ODM for VSCode Editor. This extension for Visual Studio Code adds snippets for NestJS Mongoose ODM for TypeScript.

Home Page: https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-mongoose-snippets

License: MIT License

mongo mongodb mongodb-database mongoose mongoose-js mongoosejs nest nestjs vscode vscode-extension

vscode-nestjs-mongoose-snippets's Introduction

NestJS Mongoose ODM Snippets for VSCode Editor

Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Downloads Visual Studio Marketplace Rating GitHub Repo stars GitHub license

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

demo

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

GitHub followers X (formerly Twitter) Follow

Other Extensions

Changelog

See CHANGELOG.md

Authors

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.

vscode-nestjs-mongoose-snippets's People

Contributors

manuelgil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.