This guy has same haircut for years, like not even an hair goes in wrong direction 😂, love you bro tnx 💪❤️
@extremeweirdness1528 Жыл бұрын
Fun fact I got confused between web dev cody and him and I thought he lost his hair in the present 😂.
@vikashviraj1232 Жыл бұрын
Fun fact: He use hair wigggg 😂
@Vietnamcamping8911 ай бұрын
He is used css bro 😅
@n3x40411 ай бұрын
@@extremeweirdness1528 lmaooo
@n3x40411 ай бұрын
@@vikashviraj1232 I’m gonna buy it 😂
@AliAliOxenFree Жыл бұрын
This is an hour long video, but honestly there's like 6 hours of content here. You have done a fantastic job. Prisma is tuly amazing!
@t3dotgg2 жыл бұрын
Yeah prisma's pretty cool Quick hot take - migrations kinda suck and `npx prisma db push` w/ a db branch model (like planetscale) is a way better dx IMO
@umoooo2 жыл бұрын
its cool to see you here, I first learnt about prisma in your link shortener video. It was awesome!
@curiouslycory2 жыл бұрын
Do you have any videos or can you recommend any docs regarding this? I'm kinda stuck on the whole migration thing. Dev migrations work great, but translating those changes to prod seems to be really unclear to me. Running deploy from vercel tells me that there's no changes and the error log says I should baseline. Ultimately I ended up changing my connection on my local machine to the prod database and resolving all of the migrations, but didn't seem like the correct way to do it.
@arlandmv40532 жыл бұрын
Hello, can you say why do they suck? I would like to know..
@psyferinc.35739 ай бұрын
i forgot where but i managed to create some scripts that have the migration and pushing set @@curiouslycory "prismaPush": "dotenv -e .env.local npx prisma db push ", "prismaMigrate": "dotenv -e .env.local npx prisma migrate ", "prismaStudio": "dotenv -e .env.local npx prisma studio" these are my scripts in my package.json file ( for npm run and i installed "dotenv": "^16.3.1", "dotenv-cli": "^7.3.0", one year too late but i feel your pain
@JuanMoisesTorrijos5 ай бұрын
Just five minutes into your video and I've already received assistance with my formatter! This was much needed! I appreciate it, thanks a lot!!
@masuya444 Жыл бұрын
Such a fantastic job of teaching prisma, no useless sidetracks, to the point. This is gold. I would give it way more than one like if I can!
@dkras Жыл бұрын
You can, use another account
@Alex_agamer2 жыл бұрын
I accidentally clicked on the notification but i learned what prisma is and this video is actually really useful to me Thank you
@nairanvac792 жыл бұрын
I came down to the comments to say the same thing. I thought this was going to be a Figma tutorial, but this is way cooler.
@matzesox2 жыл бұрын
Hey Kyle, great vid. One note though: In around 29:00 you create an index on email, but you already have the unique constraint, which will create an index for you (unique constraints are basically an index with extra functionality). So all that sorting or filtering will already use the index, and you just add duplicate second index on the same field.
@wusswuzz5818 Жыл бұрын
Other alternatives to switching around the one-to-one relationship is a) when deleting, delete the dependent (preference) table first then the main table b) in the dependent table (preference) on the relationship put a cascade delete. In this case only need to delete the user table and it will auto delete related entry in the preference table.
@gabrielpedroza13462 жыл бұрын
This couldn’t have been a better timing. There is a new stack called t3-stack which uses nextjs, typescript, tailwind and tRPC. I WOULD LOVE you to create a video on tRPC because it simplifies and removes a shit ton of backend code. It also removes the schema so no graphQL because typescript safely infers the types so all you need to do is call the backend function and you’re good to go
@nexxel2 жыл бұрын
maintainer of create-t3-app here. would love if Kyle makes a video using tRPC!
@lukausalj76302 жыл бұрын
+1 for this
@outis992 жыл бұрын
Literally the reason I'm here and quite surpirsed this is the most upvoted comment lol, I just started playing around with it today and it is amazing! There's some new syntax in v10 which means most videos are outdated but it's not that different, would love a video from Kyle
@warsame22452 жыл бұрын
@@nexxel I doubt it, the creator of tRPC aka Theo made a video making fun of kyle teaching method. dude is sassy
@nexxel2 жыл бұрын
@@warsame2245 Theo isn't the creator of tRPC lol.
@Patrick33456 Жыл бұрын
I don't often leave comments but this video (and many others) was extremely helpful and to the point. This is the perfect way to learn something like Prisma and I'm tremendously grateful to you. There's so many people putting out content like this but you're one of the best. You make everything super approachable and have a knack for going in depth without being overwhelming. You've got a gift, keep on doing your thing man!
@astkh4381 Жыл бұрын
as i undertsand if you got for example one-to-many realtion you can connect models from both sides?You can make user and connect certain post or you can make post and connect your user?
@27sosite73 Жыл бұрын
@@astkh4381 plz google it
@nikhil182 Жыл бұрын
This is pure gold! I want to use prisma for my personal portfolio website. This video really helps! Thank you Kyle✨
@moodyhamoudi7 ай бұрын
respectfully why do you need a database for a portfolio site
@nikhil1827 ай бұрын
@@moodyhamoudi Good question, I have blog page on my website and I'm storing the likes and views for each of the blog in a DB and displaying the same on the blog page. Additionally I've self hosted a web analytics tool - Umami where I'll also need a DB. I hope this answers you're question:)
@moodyhamoudi7 ай бұрын
@@nikhil182 very cool, thank you
@unknownplayer-c1i Жыл бұрын
Thanks to your video I was able to create a complex database when I have never written an SQL line in my life. Thank you so much for this video, Prisma is amazing!
@MaggieAkinsulire Жыл бұрын
You really should learn SQL though, at least just the basics. All of this would make so much more sense.
@j_s_bxpert61609 ай бұрын
If you want to learn prisma, this tutorial is the best, it covers all you need.
@sourenasahraian20558 ай бұрын
Did anyone else notice that when he logged the generated raw queries by Prisma , no join was taking place between the related tables , rather, instead of the join , it generated two back to back select queries between the related tables which means Prsima must be joining them through it's query engine as opposed to delegating the joins to the database engine in the application layer, this could have serious performance ramifications.
@fadygamilmahrousmasoud5863 Жыл бұрын
this is one of the best tutorials out there to learn Prisma if you have zero experience with prisma .. amazing tutorial thank you 🙂
@MartinFrommel6 ай бұрын
Very helpful - I usually space out when reading docs or listening to someone talking slowly but somehow you keep me awake lol.
@mustafa-ahmed-dev Жыл бұрын
Thank you so much. After I had watched this tutorial, I used Prisma in my graduation project.
@jaikushwaha10129 ай бұрын
Hey Kyle, thankyou so much for making one of the most comprehensive guide on getting started with Prisma
@lukebonnici5627 Жыл бұрын
Thanks a bunch for this tutorial! It was a super crash course that got me up to speed. Keep doing what you're doing and all the best :)
@Qw4z1 Жыл бұрын
Dude! This is probably the best tutorial on any topic that I've ever seen on KZbin.
@astkh4381 Жыл бұрын
as i undertsand if you got for example one-to-many realtion you can connect models from both sides?You can make user and connect certain post or you can make post and connect your user?
@blazi_0 Жыл бұрын
I just see the future of backend development blown away with capabilities of Prisma ! Just Wow
@siddhantgupta67192 жыл бұрын
Hey Kyle! Thanks for the Great video. Just a recommendation: for nodejs tutorials, you can put the VS code terminal on the right side instead of bottom, so both code and output is clearly visible. Keep up the amazing work
@AnnieTaylorChen2 жыл бұрын
Tried this when it was its last version. Lots have changed since. I gotta check this out again, definitely in my to watch list. :)
@sefatanam Жыл бұрын
A compact, mighty tutorial of prisma
@bandinopla2 жыл бұрын
34:16 you can also Restart the Typescript server using the command palette
@cone2571 Жыл бұрын
Svaka cast na videu, nadam se da ce svima biti jasno kako prismu koristiti, kao sto je meni jasno
@miscany2 жыл бұрын
Nice and thorough tutorial. The others ones kinda jumped in fast or implemented prisma into prebuilt projects. I've never seen it before, so it's nice to get a rundown on how everything works with configuration :)
@rtorcato Жыл бұрын
in vscode: command shift p -> Then select Typescript restart TS server. That will fix if the types don't refresh. You must be in a TS file or tsconfig to see this command appear.
@RishaBhandari Жыл бұрын
Thank you for all the efforts that you put into creating such informative videos. It really helps a lot. Keep it up Kyle
@josebladex10 ай бұрын
i was trying to get a success one to one relation query for many days, and your video was the ligth to get it, thanks so much.
@angshu75892 жыл бұрын
Nice video! I've never seen someone else research the prisma schema language that thoroughly! It's incredibly telling that it takes an entire hour to fully teach all of it, but that's why we're (me and a friend) are making a _*GUI for writing Prisma Schemas* (in development). I wonder if anyone else would benefit from that. This is mostly useful for larger projects, where a normal prisma schema could be 300+ lines long Please do leave any thoughts in the comments
@TheLifeIsGoodTV2 жыл бұрын
not really
@angshu75892 жыл бұрын
@@TheLifeIsGoodTV well that's what they said about TypeScript
@carlonnrivers2 жыл бұрын
Looking forward to it!
@bigmistqke2 жыл бұрын
Cool got a repo?
@frankylopez4477 Жыл бұрын
Truly the best Prisma tutorial I could find. Always love your videos.
@BorisDutkin-f5b Жыл бұрын
If after npx prisma generate you can't see the correct autocompletion for the types, on vscode you can cmd+shift+p => TypeScript: Restart TS Server
@workflowinmind2 жыл бұрын
A deep prisma tutorial by Kyle?? Yes please
@tw042 жыл бұрын
How did you know I'm just about to use Prisma in my new Team project?? Thank you always man
@bmejia2202 жыл бұрын
Kyle youre brilliant man. I love learning from you, you give great practical tips, and details! One of the best developers on youtube. Thank you Kyle!!!
@rahatsshowcase86142 жыл бұрын
miniDocumentation of prisma! If you go through its time stamps ! And use which you need if you forget! Superb❤❤
@Crogoch16 Жыл бұрын
Damn bro! I can't handle that amount of quality 🔥
@mSpinks012 жыл бұрын
Great timing. I am just now learning Prisma and I feel this tutorial is beneficial to getting it off the floor.
@carltongordon2 жыл бұрын
every time i start a new tech you pop up with a gem OMG
@abelxotessema343Ай бұрын
Yes, watch it. You're welcome.
@charlesbabbage67867 ай бұрын
This tutorial covers almost all crucial concepts of Prisma. Amazing job 👍🏻👍🏻
@sidarthroy8156 ай бұрын
is this still relevant?
@charlesbabbage67866 ай бұрын
@@sidarthroy815 It is.
@iamhelllover2 жыл бұрын
I've recently started using prisma and I needed a tutorial about it. Thank you for this video
@VitorVelosoSA Жыл бұрын
Perfect video. Now everything is so clean for me. Thank you
@NilanjanH8 ай бұрын
Bravo! Thanks for explaining Prisma from scratch ....🎉🌟😊
@ignaciomartinezavila56938 ай бұрын
Incredible! What a great video. Could you please explain the integration with Graphql?
@ultragigachader2 жыл бұрын
Now that is something I will use to setup my next project, thanks Kyle!
@abramboutros76722 жыл бұрын
man your subjects are just the best, I LOVE THIS CHANNEL. !!
@adimaralimuddin962 жыл бұрын
i will thank you from the start kyle! you're the man!
@bxlbjorn Жыл бұрын
Wow, was about to embark with Mongoose, but after seeing this, and coming from SQL db experience, this is the way forward. Thanks Kyle!
@kkh0101 Жыл бұрын
you need to restart your lsp to get latest autocompletions after prisma generate. ctrl+shift+p > Developer: Reload window
@Lenny_Malcolm09 ай бұрын
All in 60 minutes🤯... Great tutorial💯❤
@bilza20238 ай бұрын
when i saw this kid a while back I thought damn .... he is good, but then I thought that he will not continue and will go away... here we are 1.51 million subs later..
@alexandramoldovan54739 ай бұрын
This course is better than documentation itself! 😊 I am waiting for a react-graphql project 💪
@balaganesh3440 Жыл бұрын
Thanks for this. It was extremely useful and massively cut down the up and running time!
@splitpierre2 жыл бұрын
Great work thanks. Came here looking for some more in-depth/practical cases around using the prisma migrate tool. It'd be interesting to see a tutorial talking exclusively on handling migrations considering multiple environments [local,stage,production]. Keep up the great work!
@ritavdas7570 Жыл бұрын
Such a detailed yet concise video !
@danielnavarrete8571 Жыл бұрын
Great video!, literally everything I needed to complete my project.
@mikhalpalych11 ай бұрын
The only comprehensive one, nice, thank you dude
@mikhalpalych11 ай бұрын
Oh, but when i got to enums part, i didn't actually get, what enums are translated into
@shashishekhar4999 Жыл бұрын
I cannot thank you enough for this ❤ , there are folks creating a whole 10 hour course and cover exactly this much content. You are a GEM creating compact, filled and useful videos in practicle sense. Super thanks from India!
@duke4279 Жыл бұрын
Awesome content as always, been following you for years, thanks again Kyle ;)
@mcoria74 Жыл бұрын
Amazing, finally a tutorial well explained, thanks a lot, regards from México :)
@TimKariuki Жыл бұрын
Very comprehensive Prisma crash course very well delivered.
@roaring_cannon Жыл бұрын
This is super awesome! Thanks a lot, Kyle 🚀🚀
@yomwoldemichael451 Жыл бұрын
such a great video! I come back to this a lot
@sunilanthony179 ай бұрын
god dam, this is amazing. The documentation for Prisma is fantastic too.
@TopsideXP7 ай бұрын
when i see this man make a video on the topic im researching i close all the other tabs
@JohnSmith-vs9oe2 жыл бұрын
Top quality tutorial! Really detailed and "simplified". I am not usually writing this kind of messages, a like is usually enough. But I want to express my gratitude. Thank you! 😃
@davelag78382 жыл бұрын
awesome video!!, very well explained, thank you so much for sharing this info, I learned a lot Cheers from Central America
@YOitsBA2 жыл бұрын
I loved this tutorial, one thing I didn't understand is why you reconfigured the user preferences so they'd delete. Does Prisma not have a modifier for cascading?
@8koi245 Жыл бұрын
33:00 AHHH TYSM!! I was having it rough without the updated types :c
@kartikfire2 жыл бұрын
Wow! Amazing video! Looking forward for more typescript related tutorials!
@niteshtudu6449 Жыл бұрын
Only if some people are getting some kind of errors. If you are getting the segmentation fault (core dumped) please use the v3.7 of prisma. 😊
@alexdivito68712 ай бұрын
thanks for the video, quick ramp up on prisma
@LuisFelipe-td8qk2 жыл бұрын
Hey Kyle, thanks for your awesome work! Really love your videos. I suggest that you do a video covering GraphQL/Apollo just like this one, it would be great!
@ryanyoung1925 Жыл бұрын
Kyle, you always do the best!
@brown-programmer11 ай бұрын
Thanks for the great video!!!! I was able to do a personal project with the help of this video.
@kastenkarsten2 жыл бұрын
Wow, this video was freaing incredible! I was looking for an introduction to the most used ORMs around and you provided an mind-blowing deep-dive. But I have a few things to criticize: 1. When you tried to delete the user and userPreferences: It would have been way better to use the resp. delete function for the preferences first. As same as you would do when "cleaning" the DB usually. 2. The way of presentation: Don't get me wrong, your voice and the way everything is shown is perfectly fine. But you should consider talking a bit slower and also don't move around so much. It feels pretty hectic as if you're in a rush watching you live during the presentation. Slow down and chill a bit, we do not run away :) Anyway, overall 20 / 10 rating. Thanks for your amazing work!
@xenyens Жыл бұрын
Thank you for the update. I appreciate your time in this.
@hectorserrano9314 Жыл бұрын
In the model relationship that you pointed out between User & Post - for the favoritedBy section. Wouldn't that be a many to many relationship? A Post could be favorited by Multiple Users couldn't it? 🤔
@anhedonie92 Жыл бұрын
I noticed the same, it's a model mistake but it doesn't really matter, he just wanted to show multiple relationships.
@wfl-junior2 жыл бұрын
36:36 why not add an on delete cascade to the UserPreference -> User relation?
@TannerBarcelos2 жыл бұрын
Prisma is really , really impressive.
@edwarddelgado9654 Жыл бұрын
Cool, glad to see you covering thing this.
@swattertroops-yaaa2 жыл бұрын
Prisma is next gen
@densel.c89355 ай бұрын
Solid tutorial , it was very easy to follow along.
@Fanaro8 ай бұрын
Your videos rock. They would rock even more in 4k.
@alinawaz40342 жыл бұрын
Awesome video, this is what was looking for 💕💘 I have a request, can you make a video on GUN JS DB like this. It is amazing free pear-to-pear DB and people will love it.
@sourabhsingh4515Ай бұрын
at 33:25 you could've just restarted the typescript server or reloaded the window instead of closing the file or reopening vs code it does the work for me
@anishadhikari36902 жыл бұрын
Great comprehensive tutorials. Thank you!
@rachidb96242 жыл бұрын
Very impressive tutorial man, thank you very much ! Watched it till the end.
@theisoj2 жыл бұрын
Prisma looks cool! Thanks Kyle!
@gerryramosftw Жыл бұрын
I'm only 20 minutes in but damn is this thing super helpful, thank you for making this
@pablom227411 ай бұрын
0:19 missing self relations! ahah thanks for the video!
@AtomicCodeX2 жыл бұрын
This video was so amazing, it reminded me of mongoose Thank you Kyle!!
@ahmeism902 жыл бұрын
you must be hearing my inner voice. Thanks a lot 🙏🏼
@heitorpaulo5403 Жыл бұрын
Hey Kyle, you are an inspiration for me, really.
@ivandynysiuk43416 ай бұрын
Awesome explanation! Thanks man 😎
@AayushLad-xb5qv7 ай бұрын
Can you give that notion link...
@yasserhy2 жыл бұрын
Amazing course as always. Following you was the best decision I made a while back :) .. By the way, can't we get a copy of your course summary? It will really help as review notes :)