Nestjs Mongoose Tutorial #3 | Integration

Nestjs Mongoose Tutorial #3 | Integration

Shameel Uddin

55 лет назад

229 Просмотров

The video explains how to integrate Mongoose (ODM for MongoDB) in Nest.js (framework of Node.js). 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.

There's by default "_id" property which is added for every document that you create.

You have to use Mongoose Module which is imported from @nestjs/mongoose for this purpose in Modules in nest.js to integrate Mongoose in Nest.js.

Тэги:

#nestjs #nestjs_mongodb #nestjs_mongoose #mongodb #mongoose #nestjs_mongoose_tutorial #nestjs_mongodb_tutorial #nestjs_tutorial #mongodb_tutorial #mongoose_tutorial #nestjs_vs_express #nestjs_microservices #nest.js #nest.js_mongodb #nestjs_crash_course #nestjs_api #nestjs_rest_api #nestjs_jwt #nestjs_authentication #nestjs_access_token #nestjs_jwt_guard #nestjs_passport #nestjs_passport_jwt #nestjs_prisma #nestjs_e2e #Shameel_Uddin #nestjs/microservices #nestjs_course
Ссылки и html тэги не поддерживаются


Комментарии: