I am moving from SpringBoot with MongoDB to NestJS with MongoDB. I've tried many videos so that I could relate with my previous knowledge and it is exactly what I was looking for. I've just seen the whole video and I must say it's the one perfect video to get started.👍
@@Venkatesh-vm4ll Well, first of all, hardware cost for Springboot app is higher, development is slower because compilation takes time. I work in both technologies though. For large scale projects I use Springboot and for small and medium I use nest.
amazing Sir! it's helping me to adapt myself for the stack of the company where I'm working at, I have to learn stuff at record time and your video is saving my a***
bro ur course was very easy.. easily grasped the concepts.. also one thing was missing .env that i had to take gpt's help for but good work..keep it up
I really like your videos, it's just that, currently, I'm only interested only in Graphql as opposed to REST. Could you specify in the titles if it's REST or Graphql? I watched one of your Nestjs and Graphql videos and I have to say I learned so much there. Thank you so much.
Thanks! Very good tutorial I learned a lot. Just a question, wouldn't it be better in the one-to-many relationship to have the userId in the post. Instead of saving all posts ids in the user. Seems like updating a user is an extra query we don't need.
Para o user você adicionou uma validação (para encontrar um userId se ele existir) no controller, no Post você adicionou validação parecida mas dentro da Service, qual o local ideal para este tipo de validação?
O meu User não trazia o Settings com o ".populate()" por nada... o erro estava no schema, "ref" estava "Ref" 😅 ``` @Prop({ type: mongoose.Schema.Types.ObjectId, Ref: 'UserSettings' }) settings?: UserSettings ```
Depending on what your need is, the "id" field is autogenerated by the database. MongoDB will do that for each document by default. If you need additional unique ids you can define them in the schema/model file. Be sure to set the unique constraint too.
I really enjoy your videos as you are thinking out loud as you work out solutions to the various issues that come up...
I am moving from SpringBoot with MongoDB to NestJS with MongoDB. I've tried many videos so that I could relate with my previous knowledge and it is exactly what I was looking for. I've just seen the whole video and I must say it's the one perfect video to get started.👍
Great to hear!
Why u move from spring boot to nest
@@Venkatesh-vm4ll Well, first of all, hardware cost for Springboot app is higher, development is slower because compilation takes time. I work in both technologies though. For large scale projects I use Springboot and for small and medium I use nest.
@@govindbhardwaj_ for larger application u do u don't prefer nestjs
I was just searching for a tutorial. Since I loved your Websocket tutorial, i can expect this to be another great vid. Cheers
Hope you enjoy it! :)
I think u are best javascript teacher in youtube . good job bro , thanks
Thank you very much for saying that!
Thank you so much Anson i really enjoyed it and learned how much easy is this.
amazing Sir! it's helping me to adapt myself for the stack of the company where I'm working at, I have to learn stuff at record time and your video is saving my a***
bro ur course was very easy.. easily grasped the concepts.. also one thing was missing .env that i had to take gpt's help for but good work..keep it up
@@saniaAndFilipe ok?
It would be great if you made a video about clean architecture with NestJs
Thanks a lot, I've got new skills now.
I really like your videos, it's just that, currently, I'm only interested only in Graphql as opposed to REST. Could you specify in the titles if it's REST or Graphql? I watched one of your Nestjs and Graphql videos and I have to say I learned so much there. Thank you so much.
nice video, nest is a bit overcomplicated sometimes, but for really big projects is very cool
Very useful content! Thank you very much!
It was a great tutorial. But if possible please provide the production ready setup it would be very helpful.
Thanks! Very good tutorial I learned a lot. Just a question, wouldn't it be better in the one-to-many relationship to have the userId in the post. Instead of saving all posts ids in the user. Seems like updating a user is an extra query we don't need.
We're not saving all post IDs in the user, that is just how TypeORM requires you to save one to many and many to one relationships.
Thank you so much for this amazing video
You're welcome!
Para o user você adicionou uma validação (para encontrar um userId se ele existir) no controller, no Post você adicionou validação parecida mas dentro da Service, qual o local ideal para este tipo de validação?
please do a full stack project using angular 17 and nestJs with mangoDB if it is doable! Thank you
Thanks a lot! so easier and understandable
thanks
You are awesome. Thank you.
very helpful, go ahead
O meu User não trazia o Settings com o ".populate()" por nada... o erro estava no schema, "ref" estava "Ref" 😅
```
@Prop({ type: mongoose.Schema.Types.ObjectId, Ref: 'UserSettings' })
settings?: UserSettings
```
Thank you! greate video!
Thank you soo much
Thanks for making this.
You're welcome!
Thank you. Very well!
nest g resource users --no-spec
User this command and create all the files like module, Dto, controller and service
Do you have any more useful commands?
Hi, I have a question. Where we defined the id field?
Depending on what your need is, the "id" field is autogenerated by the database. MongoDB will do that for each document by default. If you need additional unique ids you can define them in the schema/model file. Be sure to set the unique constraint too.
great video , , iave a question , lets say on the posts i only want only want to populate the title only when doing a get request how do i do that
Good question, see this: mongoosejs.com/docs/populate.html#setting-populated-fields
Excelente muy bien explicado
how are u writing with cursor that smooth can you tell whats the extention and also the terminal type
It’s a setting in vs code called “smooth cursor”
THANK YOU!
You're welcome.
Thank you man
You're welcome
best video
Thank you!!!!!!!!!!!!!!!
thank you
greate video! you are super :)
what's the difference between @IsNotEmpty and @Prop({required:true}) and why we cannot see the user from the post
thanks man🤌
Nice one
Thanks 🔥
Thanks 🔥
Thanks
Sir What's Your VSCODE font name ?
Operator Mono
Дякую
Agr sim ❤️
👍
So we don't use prisma with mongoDB ... Ok
@@Mugisama973 ok….?
@@ansonthedev it’s cool without prisma to mongo
You can use MongoDB with anything.
Good vid but overcomplicated
And what was complicated about it?