Prisma in Next.js - My Fav Way to Work with Databases (CRUD, Dev/Prod Workflow, Relations, Indexes)

  Рет қаралды 87,823

ByteGrad

ByteGrad

Күн бұрын

Пікірлер: 135
@SamSenpie
@SamSenpie 4 ай бұрын
Dude is just showing how prisma is used, but I learned how to develop an app in NextJS with this video. Better tutorial than other videos out there.
@alikhalil4431
@alikhalil4431 Ай бұрын
For real tho, props to this polish!!!!🇵🇱
@fvgoya
@fvgoya 24 күн бұрын
Same!!
@Ssmb-qj4df
@Ssmb-qj4df 5 ай бұрын
Man is the best teacher who doesn't give me anxiety while learning
@Sahil.1
@Sahil.1 2 ай бұрын
Knew nothing about prisma and as i completed this video by following him fully understand how prisma works and how to use this. This man is such an underrated gem 💎
@PrismaData
@PrismaData 7 ай бұрын
Incredible video!
@ByteGrad
@ByteGrad 7 ай бұрын
Any time!
@rohitkochikkatfrancis
@rohitkochikkatfrancis 7 ай бұрын
THIS IS THE BEST EXPLAINED VIDEO FOR PRISMA !!!!! Thank you so much for dwelling into even the minor details so that people who dont even have a clue bout what it is can easily understand it.
@cousefirst1351
@cousefirst1351 3 ай бұрын
I have been running in circles trying to figure out server side actions in NextJS 14. This video was extremely helpful. Thanks a million!
@movieMysteries01
@movieMysteries01 7 ай бұрын
Bro read my mind, yesterday I was thinking about when you will make a video on Prisma..and here it is 🙏
@enn_nj
@enn_nj 7 ай бұрын
😂same with me bro..i love you so much bro, you read our mind😂🙏🏻🙏🏻🙏🏻 that's what i need..thankyou so muchh💐💐💐♥️
@aloky247
@aloky247 5 ай бұрын
I was directed here from the Prisma docs. Thank you for the awesome tutorial.
@ZentoNFTs
@ZentoNFTs 3 ай бұрын
The best Next.js video on KZbin! Learned so much from this. Thank you so much.
@CleverGeneration
@CleverGeneration 7 ай бұрын
I'm only half way through and I've already learnt so many new things, thank you!!! Brilliant video ❤
@Saradomin65
@Saradomin65 7 ай бұрын
Was planning to get back to full-stack dev using prisma with Nextjs to create some side projects and this video comes in. Definitely will help a ton, thanks! 😁
@grugbrain
@grugbrain 4 ай бұрын
When you create the fourth post, it pops up in the list. This is sick!!! I have been using Next.js the wrong way! Oh my!!!
@maulahaz
@maulahaz 24 күн бұрын
Amazing tuts, Great and clear explanation. Thanks a ton
@abeybruck151
@abeybruck151 6 ай бұрын
very very very awesome. you sir is a natural born teacher. respect
@olusanyaolamide9764
@olusanyaolamide9764 7 ай бұрын
Nice one, will definitely check it out when I have time, I'm excited already, but we'll also love you to do a NodeJs Express course
@mistersir3185
@mistersir3185 7 ай бұрын
The timing of this video is divinely. Love you bro.
@R3nxt
@R3nxt 7 ай бұрын
Great video. You were right, caching deserves its own video. Could you please upload a video that handles caching?
@ByteGrad
@ByteGrad 7 ай бұрын
Yes, coming soon!
@armaandhanji2112
@armaandhanji2112 7 ай бұрын
Looking forward to the caching video alot too!
@AnwerJahid-g6t
@AnwerJahid-g6t 4 ай бұрын
Please don't stop creating such a worth watching content. 💝💝💝
@KulturanCov
@KulturanCov 2 ай бұрын
BRILLIANT. Thank you very much!
@yufengxiang3020
@yufengxiang3020 3 ай бұрын
very concise and helpful, good job!
@NMCM00
@NMCM00 17 күн бұрын
really fantastic video, thank you
@josephito27
@josephito27 5 ай бұрын
10 mins in and it is already solving me a lot of doubts about Next js omg, thank you
@aryaamootaghi3248
@aryaamootaghi3248 4 ай бұрын
this guy knows what he is doing 🚀🚀🚀🚀
@JackTheZuluman
@JackTheZuluman 7 ай бұрын
Man,I really thought I can use Prisma. Thanks a lot for this🔥🔥🔥
@poojangoyani4383
@poojangoyani4383 23 күн бұрын
Amazing content. Keep it up.
@RoyTjuh
@RoyTjuh 6 ай бұрын
dankjewel voor de video kerel
@vt1tov
@vt1tov 7 ай бұрын
I love you man. Thanks! Great content :)
@thenorthernhabitants9387
@thenorthernhabitants9387 3 ай бұрын
Great video sir !!
@ReDestro69
@ReDestro69 4 ай бұрын
Hey ByteGrad, love your videos. Would love to see you make a video on supabase and Nextjs
@Sahil.1
@Sahil.1 2 ай бұрын
27:07 if you're using next15 then note that dynamic rendering has changed and you'll always have error so give a quick search on how to use dynamic route in next15
@yasinduneth
@yasinduneth 2 ай бұрын
really valuable content!
@mostafashahat9760
@mostafashahat9760 7 ай бұрын
Awesome, keep up the great work 💖
@ptk_001
@ptk_001 7 ай бұрын
Thanks for this amazing content!
@JacobPhillips-rf5db
@JacobPhillips-rf5db 6 ай бұрын
THANK YOU! You're AWESOME!
@MdNaimurRahmanHera
@MdNaimurRahmanHera 4 ай бұрын
Best by far
@alarafatsiddique9362
@alarafatsiddique9362 6 ай бұрын
Could you please make a tutorial specifically on how to use Prisma from development, and testing to production with some concrete examples?
@PolatjonQurbonov
@PolatjonQurbonov 6 ай бұрын
It is a very informative lesson! Thank you!
@ashfaqkabir
@ashfaqkabir 6 ай бұрын
Awesome Video, Please Do a video On Dashboard Tutorial with Next Auth, SeverActions, Prisma and Mongodb
@hameeeed5992
@hameeeed5992 11 сағат бұрын
Thanks man ❤
@MrJohn360
@MrJohn360 5 ай бұрын
Thanks for sharing.
@vipernext2190
@vipernext2190 7 ай бұрын
as always greate video ❤❤
@enn_nj
@enn_nj 7 ай бұрын
The best video from the best teacher 🙏🏻🙏🏻🙏🏻🙏🏻i really like this Chanel.
@nickwoodward819
@nickwoodward819 2 ай бұрын
Love your channel, don't watch it enough tbh. really interested why you prefer prisma to drizzle?
@mlavinb
@mlavinb 7 ай бұрын
Great content! thanks for sharing
@socarmm
@socarmm 5 ай бұрын
Excelente! Gracias
@RobertBojor
@RobertBojor 5 ай бұрын
Great example for using Prisma, thank you! I do have a question, when using this over an existing database, with data, and I mean lots of it, wouldn't make more sense to instead use prisma generate, instead of the push, to update the client with the unique fields and so on?
@GhostHack_1
@GhostHack_1 7 ай бұрын
One warning about prisma that most developers (including myself) overlook, it does not support optimistic rowlocking API calls. You will have to use Raw SQL for that and it gets very messy / hard to do when accounting for race conditions in production.
@kineti-ko
@kineti-ko Ай бұрын
One issue on the path in page.tsx to the individual post page, use backticks ` ` rather than single quotes.
@jc2057
@jc2057 4 ай бұрын
good video, and definitely good commercial for copilot lol
@AK-kq1mk
@AK-kq1mk 5 ай бұрын
Useful stuff
@jfhandfield
@jfhandfield 6 ай бұрын
Wow great video Byte. Really well explained. The only question I have is what if I have 2 different database to access. How are you going to make your clients? Is it going to be in the same db.ts?
@nikolas_beckel
@nikolas_beckel 5 ай бұрын
Good video 👌
@jeffinj7707
@jeffinj7707 6 ай бұрын
Please also consider the fact that there are use cases where we have a standalone node/nestjs backend with an ORM, a nextjs app maybe one of the clients using the APIs. so no point in implementing the ORM in the nextjs too. what would be a better solution here? RQ?
@Code4FunEducation-vn6bs
@Code4FunEducation-vn6bs Ай бұрын
thank you so much for this video. i wan thinking how we can use prisma to make views & stored functions in postgresql database stored on Vercel, i did some researching, but its not that claire !
@nasko235679
@nasko235679 7 ай бұрын
NICE!
@a4tech357
@a4tech357 5 ай бұрын
Helpful video! Can we get a github repo?
@parkerboling666
@parkerboling666 7 ай бұрын
Hey bytegrad I really enjoy your content and recently have been following along in some of your content, and I like kinde authentication. I’m building a full stack application for a childcare company and it would be a good video idea to show admin authorization and interacting with the kinde API to manage users from a secured back end admin panel this would help me out tremendously! I really enjoy the content though keep up the good work!
@viundesign
@viundesign 6 ай бұрын
6:33 Why doesn't it appear to me the autocomplete? I have the Prisma extension already installed
@mustafamufeed1666
@mustafamufeed1666 6 ай бұрын
+1
@viundesign
@viundesign 6 ай бұрын
Still wondering
@viundesign
@viundesign 6 ай бұрын
@@mustafamufeed1666 Git Hub Copilot
@viundesign
@viundesign 5 ай бұрын
@@mustafamufeed1666 Git Hub Copilot
@suphawatwong9438
@suphawatwong9438 5 ай бұрын
@@viundesign it's co-pilot feature, i guess
@TenzDelek
@TenzDelek 6 ай бұрын
i am about to start out, should i go with Prisma or drizzle?
@indimerz
@indimerz 7 ай бұрын
can you make a video to show recommended way of doing filtering, sorting, search with nextjs and prisma??
@Sagarclips
@Sagarclips 5 ай бұрын
When creating post, why client component was not used
@StephenRayner
@StephenRayner 3 ай бұрын
If I use a prisma enum type and then try to use the object it creates at build time it is fine. I can see the object and command click through to its definition in index.d.ts (object in an d.ts file hmm?) But at run time I get an error that I can not access x of undefined. The object is not made available to the client at run time.
@jijirijohnson3453
@jijirijohnson3453 Ай бұрын
Great tutorial. Thanks Please, does it mean that we don't need to create any API before we can do CRUD operations in the nextjs?
@kdstudiogames3602
@kdstudiogames3602 6 ай бұрын
sir your video is very helpfull to me. i have compleated the above video. but i have issue with the update post which i have tried in same way as server acton use for create post. how to pass the id in action={updatePost}. how to pass the id? please help
@zainn7336
@zainn7336 6 ай бұрын
Sir make a full video of supabase and next js as backend
@robiulhasan9553
@robiulhasan9553 Ай бұрын
Hi dear! i noticed that, when your are writing code the you get full code suggestion and when you press tab button then whole code is properly visible and working fine. would you please tell me what is the vs code extension name??
@鄧莉瀕
@鄧莉瀕 5 ай бұрын
Does anyone have a problem with form fields not reset after submission?
@seniortom123
@seniortom123 Ай бұрын
Looking for the type "PostCreateInput" within 'node_modules' seems like a weird strategy. How can I do that efficiently?
@aberbaCodes
@aberbaCodes 4 ай бұрын
Unrelated question, but how to you fast forward copy and paste code in your videos whilst the voice shows no break?
@krishpatel3632
@krishpatel3632 7 ай бұрын
What vs code theme do you use? It's great
@umernasir4217
@umernasir4217 7 ай бұрын
Please tell me as well.
@AvikNayak_
@AvikNayak_ 6 ай бұрын
Maybe Andromeda
@heismyke
@heismyke 6 ай бұрын
He doesnt like to tell people what theme he uses. i have been asking him too for a long time
@darz_k.
@darz_k. 5 ай бұрын
Hey man - as an aside to this video being related to prisma - I'm looking at a new hosting provider, and they are only offering sql databases for the backend - would you recommend using regular sql databases with nextjs and react? Projects would be small to medium in terms of requests and users. If you could give us your advice on that, it would be much appreciated!
@marbot9780
@marbot9780 4 ай бұрын
Hello - i am a big fan of your videos - you are great! But where can i find the sourcecodes? Kind regards Markus
@true227
@true227 5 ай бұрын
i can't find data type cuid() in the description postgre, it's have only uuid()
@GriMoney
@GriMoney Ай бұрын
turborepo + prisma + next.js ?
@Grishopping
@Grishopping 3 ай бұрын
turborepo with prisma and next.js ?????
@muratasarslan2359
@muratasarslan2359 4 ай бұрын
how about using JSON data type in Prisma schema and use it in queries & updates in a type safe way? Could not find a clear way to handle it gracefully 😥
@faijansaifi
@faijansaifi 4 ай бұрын
Should I use sqlite in production with prisma
@nasko235679
@nasko235679 7 ай бұрын
When you need to get data from db to a client component would you say the best way is by fetching the data in a parent server component and then passing it down to the client as props?
@ByteGrad
@ByteGrad 7 ай бұрын
That would be pretty typical yes
@assassingob7315
@assassingob7315 6 ай бұрын
Hey, everybody! Can someone explain why after the application build, the updated data in the database is not updated on the client? The component is server-side
@sankasanjeeva1182
@sankasanjeeva1182 Ай бұрын
An extensive scope within a limited timeframe
@RomFeliciano
@RomFeliciano Ай бұрын
Hi, how can you display the error in client?
@juliusgrisette
@juliusgrisette 7 ай бұрын
Thank you
@poojaschannel9110
@poojaschannel9110 Ай бұрын
"Hi ByteGrad, which Visual Studio Code extension are you using for auto code suggestions? Please let me know."
@ianc6418
@ianc6418 6 ай бұрын
I am stuck on trying to figure out how sqlite runs on apple silicon. home-brew doesn't seem to work edit: It seems to come preinstalled on macOS. How weird is that!
@gttrackpro9433
@gttrackpro9433 7 ай бұрын
hey @bytegrad, this workflow & advance tutorial is available on your course?
@ByteGrad
@ByteGrad 7 ай бұрын
We also use Prisma in the course, but not super advanced or something like that
@gttrackpro9433
@gttrackpro9433 7 ай бұрын
​@@ByteGrad ok got it. going to purchase your course asap 🎉
@victormustin2547
@victormustin2547 7 ай бұрын
I may be wrong but I don't think you talked about security and authorization which would have been great
@asmitkhanal834
@asmitkhanal834 7 ай бұрын
i m new on nextJs so help me to use delete and update operation in the frontend ui code.How to execute the created function in the UI form?help me plzzz
@abdelrahmanmostafa9489
@abdelrahmanmostafa9489 6 ай бұрын
Github link?
@ivangeorge4478
@ivangeorge4478 7 ай бұрын
45:52 what was that sound :)
@arkodeepchatterjee
@arkodeepchatterjee 4 ай бұрын
not only a simple prisma course
@A28480
@A28480 7 ай бұрын
Would be very helpful to understand why the data sometimes disappears when the schema is changed? Anyone know why it happens? Thanks a lot
@emad_naeim
@emad_naeim 7 ай бұрын
if the old data violates the new schema you make then it will be deleted (it will tell you and warn you before that), like if you are going to add new column and that column is required.. and you didn't specify the default value.. then by default old data will be deleted because they don't have value for this new colum. as a hack when you are playing with schema and you want to add new column.. specify a default value.. then it won't delete old data
@A28480
@A28480 6 ай бұрын
@@emad_naeim thank you very much
@emad_naeim
@emad_naeim 6 ай бұрын
@@A28480 😇🤍
@teetanrobotics5363
@teetanrobotics5363 7 ай бұрын
Could you please make a project on credentials and social oauth using Auth.js, Supabase. We can also use resend for sign up confirmation and forgot password.
@goofy1982
@goofy1982 2 ай бұрын
My form does not reset automatically, how is that possible?
@haashirnawaz9687
@haashirnawaz9687 Ай бұрын
revalidatePath
@imkeyi
@imkeyi 6 ай бұрын
what if a post could have multiple categories and tags
@blazi_0
@blazi_0 7 ай бұрын
The hardest thing that i dealt with prisma schmea until now was adding multi language support. Tried so many ways and ended up with using json for storing the values Not happy with this solution and looking for better ways, ill be appreciated if someone can help me with this
@sorenbs1
@sorenbs1 7 ай бұрын
I’ve always implemented this by loading the full translation file as json and caching it in memory on the server. That way loading the replacements is super cheap.
@haikelareff
@haikelareff 6 ай бұрын
god bless you...
@ahmadullahnikzad2850
@ahmadullahnikzad2850 6 ай бұрын
revalidatePath does not work
@eliyir
@eliyir 6 ай бұрын
🙏
@nickwoodward819
@nickwoodward819 2 ай бұрын
prisma studio seems to completely ignore not null constraints
@richardnorris9256
@richardnorris9256 5 ай бұрын
This guy must be Dutch to speak English this clearly and quickly while multitasking. He definitely isn't British or American anyway, his English is too good.
@jellyfish1772
@jellyfish1772 7 ай бұрын
why not drizzle
@bibblebabl
@bibblebabl 7 ай бұрын
If you think you ready to try it - go for it. It’s not exactly the same and it has less abstractions AFAICT. So basically you will need better understanding of SQL because drizzle gives you more control since it’s more a query builder. Now it becomes more popular but I guess not all people understand that it requires some entry level when with prisma you don’t have to care about a lot of things
@jonbharrell
@jonbharrell 7 ай бұрын
@bibblebabl is completely right. Prisma and Drizzle are similar tools at different levels of abstraction. If you prefer the Drizzle way of defining your models and querying, then it is the right tool for you.
All 29 Next.js Mistakes Beginners Make
1:45:10
ByteGrad
Рет қаралды 158 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Prisma - лучшая ORM для Node.js
23:45
PurpleSchool | Anton Larichev
Рет қаралды 33 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 222 М.
Learn Prisma In 60 Minutes
59:25
Web Dev Simplified
Рет қаралды 436 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 219 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 443 М.