Mongoose Tutorial 03: Validating Data in Mongoose

  Рет қаралды 433

OneCodeCamp

OneCodeCamp

Күн бұрын

Пікірлер: 1
@krzysztofpilch6307
@krzysztofpilch6307 11 ай бұрын
I like the video, only some observations: 0:48 - We can pass { timestamps: true } as the second argument of schema constructor, instead of making manually 'createdAt' field. 10:00 - We can use a well known property { unique: true } inside field's configuration, instead of creating a custom validator for this purpose, but we have to do it before inserting the first document into collection, otherwise it won't work! 14:43 - I think you should log "savedBook" object, which is a response from mongoose, instead of "newBook", which is an unsaved object, created before executing save() function.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 117 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
How to Set up Visual Studio Code for C and C++ Programming 2025
5:44
Node Auth Tutorial (JWT) #5 - Mongoose Validation
23:15
Net Ninja
Рет қаралды 70 М.
Hashing Passwords in Node and Express using bcrypt
17:38
Sam Meech-Ward
Рет қаралды 33 М.
AM Coder - MongooseJS Course #4 - Mongoose Relationships (ObjectID and Populate)
15:36
Web Development with Alex Merced
Рет қаралды 9 М.
How to Use Pandas With Pandera to Validate Your Data in Python
11:32
Mongoose Crash Course - Beginner Through Advanced
33:36
Web Dev Simplified
Рет қаралды 489 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 94 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН