REST API Tutorial (Node, Express & Mongo) #8 - Models & Schemas

preview_player
Показать описание
Hey all, in this REST API tutorial I want to show you how to create a model & schema using Mongoose. A model represents a collection in MongoDB and a Schema defines the structure of records within a MongoDB collection.

----- COURSE LINKS:

---------------------------------------------------------------------------------------------

========== PSD to WordPress Playlist ==========

============== The Net Ninja =====================

================== Social Links ==================

Рекомендации по теме
Комментарии
Автор

Your course is very complete, you know how to teach, explaining the theory (Diagrams), while put in practice the code, greatly reducing the level of frustration, typical on programing, frustration is the reason for someone leave a tutorial . Congratulations

julianfernandomancerarozo
Автор

Man. I've been following your videos and its absolutely amazing! Thanks for all of your hardwork, love what you are doing. <3

Kaiskii
Автор

I have been spent a lot of time to learn node and express but very difficult to understand until I found this damp video! Man.... thank you very much!! You deserve the right for donation.

drlucky
Автор

Again, you are the best man! I watched your NodeJS videos and now this series. Your explanations are simple and clear. The examples you give are really fun to watch and learn. Keep up the good work and looking forward to watching your other series of videos! :)

chand
Автор

Great work buddy ... For your work lot of people are getting benefits..😍😍

radhanathparida
Автор

I have taken several courses of you I really enjoyed Thank you

case_tips
Автор

Your tutorials are super awesome. Thanks a lot pal.

BerndHolbein
Автор

You Help me a lot... Top quality videos,

rafaelcalderon
Автор

for those who can’t install mongoose, try: npm i mongoose
it worked for me.

suthirakprom
Автор

This course is great.
There is a mistake in the field "type" in "available".

available: {
type Boolean,
default: false
}

":" is missing (after "type").
It should be:

available: {
type: Boolean,
default: false
}

jnoj
Автор

Thanks for the great tutorials!! I have a question. What is the right data type to store the URLs in mongodb?

prachiprabhu
Автор

I suggest to anyone who have not learn pure mongoDB to back off, diving to mongoose without at least intoduction to pure mongoDB will defeat the purpose of using NoSQL database. I suggest that you get familiar with pure mongo db create some projects with it and get back learning how to be make REST API

spacetimekiddo
Автор

is it possible to have a dynamic collection name?

syedshow
Автор

hello !! could you make a tuto about api documentation ??? Swagger is an useful tool but very complicated !!

Jimi-bxxf
Автор

Amazing tutorial you explain things very well! Cant you just do const NinjaSchema = mongoose.Schema?

caseyvandyke
Автор

what's your UI themes and syntax theme name

keshrirai
Автор

ninja brother plz make for nodejs + mysql

jawadahmed
Автор

const Ninja = mongoose.model('ninja', NinjaSchema);
I don't understand where 'ninja' come from?
Thanks for your great videos.

minhtongdu
join shbcf.ru