Nestjs Mongoose Tutorial #13 | How to create CRUD endpoints

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • In previous videos, we have learned how to perform CRUD operation like how to create, read, read and delete the documents from collection in MongoDB using Mongoose for user and how to perform exists check for better validation.
    This video is fast paced because all the concepts like @Prop @Schema and other things are explained when creating schema. A bit of using reference using ref is also explained to create relation between two different schema.
    After creating schema, it should be injected properly using constructor with the help of @InjectModel.
    The video also explains @isMongoId which was not explained previously. It is used for validation that the incoming string is a valid MongoDB ID.

КОМЕНТАРІ •