Nestjs Mongoose Tutorial #4 | Schema

Поділитися
Вставка
  • Опубліковано 15 лют 2024
  • The video explains how Mongoose Schema can be created in Nest.js framework and how it can be registered within a Module.
    Schema is the basic building block in Mongoose. It maps MongoDB Collection which defines the shape of the document. Schema define models which are responsible for creating or reading the documents. You can use analogy of Classes and Objects here as well, Classes represents Schema and Objects represents models. So you can say that schema is like a blueprint for the documents that you tend to create.
    Related Videos:
    Dependency Injection: • NestJS Tutorial #09 |...
    Modules: • NestJS Tutorial #12 |...
    #nestjs #mongodb #mongoose #nodejs #javascript #typescript
  • Наука та технологія

КОМЕНТАРІ •