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

  Рет қаралды 76,567

ByteGrad

ByteGrad

Күн бұрын

Пікірлер: 131
@SamSenpie
@SamSenpie 3 ай бұрын
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 8 күн бұрын
For real tho, props to this polish!!!!🇵🇱
@Ssmb-qj4df
@Ssmb-qj4df 4 ай бұрын
Man is the best teacher who doesn't give me anxiety while learning
@Sahil.1
@Sahil.1 Ай бұрын
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 💎
@rohitkochikkatfrancis
@rohitkochikkatfrancis 5 ай бұрын
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.
@rtx50700
@rtx50700 5 ай бұрын
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 5 ай бұрын
😂same with me bro..i love you so much bro, you read our mind😂🙏🏻🙏🏻🙏🏻 that's what i need..thankyou so muchh💐💐💐♥️
@cousefirst1351
@cousefirst1351 2 ай бұрын
I have been running in circles trying to figure out server side actions in NextJS 14. This video was extremely helpful. Thanks a million!
@PrismaData
@PrismaData 5 ай бұрын
Incredible video!
@ByteGrad
@ByteGrad 5 ай бұрын
Any time!
@Saradomin65
@Saradomin65 5 ай бұрын
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! 😁
@ZentoNFTs
@ZentoNFTs 2 ай бұрын
The best Next.js video on KZbin! Learned so much from this. Thank you so much.
@CleverGeneration
@CleverGeneration 5 ай бұрын
I'm only half way through and I've already learnt so many new things, thank you!!! Brilliant video ❤
@aloky247
@aloky247 4 ай бұрын
I was directed here from the Prisma docs. Thank you for the awesome tutorial.
@grugbrain
@grugbrain 2 ай бұрын
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!!!
@R3nxt
@R3nxt 5 ай бұрын
Great video. You were right, caching deserves its own video. Could you please upload a video that handles caching?
@ByteGrad
@ByteGrad 5 ай бұрын
Yes, coming soon!
@armaandhanji2112
@armaandhanji2112 5 ай бұрын
Looking forward to the caching video alot too!
@olusanyaolamide9764
@olusanyaolamide9764 5 ай бұрын
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 5 ай бұрын
The timing of this video is divinely. Love you bro.
@abeybruck151
@abeybruck151 5 ай бұрын
very very very awesome. you sir is a natural born teacher. respect
@u.chaudhry2147
@u.chaudhry2147 5 ай бұрын
@ByteGrad can you next do tRPC with Next.js App Router? Also, you are the best teacher of the t3 stack out there. The way you teach us in such depth is awesome!
@josephito27
@josephito27 4 ай бұрын
10 mins in and it is already solving me a lot of doubts about Next js omg, thank you
@JackTheZuluman
@JackTheZuluman 5 ай бұрын
Man,I really thought I can use Prisma. Thanks a lot for this🔥🔥🔥
@Sahil.1
@Sahil.1 Ай бұрын
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
@GhostHack_1
@GhostHack_1 5 ай бұрын
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.
@AnwerJahid-g6t
@AnwerJahid-g6t 2 ай бұрын
Please don't stop creating such a worth watching content. 💝💝💝
@jfhandfield
@jfhandfield 5 ай бұрын
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?
@alarafatsiddique9362
@alarafatsiddique9362 5 ай бұрын
Could you please make a tutorial specifically on how to use Prisma from development, and testing to production with some concrete examples?
@RobertBojor
@RobertBojor 3 ай бұрын
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?
@aryaamootaghi3248
@aryaamootaghi3248 3 ай бұрын
this guy knows what he is doing 🚀🚀🚀🚀
@KulturanCov
@KulturanCov Ай бұрын
BRILLIANT. Thank you very much!
@kineti-ko
@kineti-ko 19 күн бұрын
One issue on the path in page.tsx to the individual post page, use backticks ` ` rather than single quotes.
@yufengxiang3020
@yufengxiang3020 2 ай бұрын
very concise and helpful, good job!
@ReDestro69
@ReDestro69 3 ай бұрын
Hey ByteGrad, love your videos. Would love to see you make a video on supabase and Nextjs
@Code4FunEducation-vn6bs
@Code4FunEducation-vn6bs 16 күн бұрын
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 !
@nickwoodward819
@nickwoodward819 Ай бұрын
Love your channel, don't watch it enough tbh. really interested why you prefer prisma to drizzle?
@RoyTjuh
@RoyTjuh 5 ай бұрын
dankjewel voor de video kerel
@vt1tov
@vt1tov 5 ай бұрын
I love you man. Thanks! Great content :)
@ashfaqkabir
@ashfaqkabir 5 ай бұрын
Awesome Video, Please Do a video On Dashboard Tutorial with Next Auth, SeverActions, Prisma and Mongodb
@jijirijohnson3453
@jijirijohnson3453 13 күн бұрын
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?
@yasinduneth
@yasinduneth Ай бұрын
really valuable content!
@jeffinj7707
@jeffinj7707 5 ай бұрын
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?
@nunzioasisto
@nunzioasisto 5 ай бұрын
What would you suggest if the revalidatePath is not refreshing the input and content boxes after submitting a post? The new post appears but the data is not cleared from input nor content.
@kdstudiogames3602
@kdstudiogames3602 5 ай бұрын
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
@mostafashahat9760
@mostafashahat9760 5 ай бұрын
Awesome, keep up the great work 💖
@a4tech357
@a4tech357 4 ай бұрын
Helpful video! Can we get a github repo?
@TenzDelek
@TenzDelek 4 ай бұрын
i am about to start out, should i go with Prisma or drizzle?
@JacobPhillips-rf5db
@JacobPhillips-rf5db 5 ай бұрын
THANK YOU! You're AWESOME!
@ptk_001
@ptk_001 5 ай бұрын
Thanks for this amazing content!
@PolatjonQurbonov
@PolatjonQurbonov 5 ай бұрын
It is a very informative lesson! Thank you!
@Sagarclips
@Sagarclips 4 ай бұрын
When creating post, why client component was not used
@鄧莉瀕
@鄧莉瀕 4 ай бұрын
Does anyone have a problem with form fields not reset after submission?
@thenorthernhabitants9387
@thenorthernhabitants9387 2 ай бұрын
Great video sir !!
@StephenRayner
@StephenRayner 2 ай бұрын
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.
@robiulhasan9553
@robiulhasan9553 16 күн бұрын
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??
@indimerz
@indimerz 5 ай бұрын
can you make a video to show recommended way of doing filtering, sorting, search with nextjs and prisma??
@muratasarslan2359
@muratasarslan2359 3 ай бұрын
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 😥
@aberbaCodes
@aberbaCodes 3 ай бұрын
Unrelated question, but how to you fast forward copy and paste code in your videos whilst the voice shows no break?
@darz_k.
@darz_k. 4 ай бұрын
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!
@poojaschannel9110
@poojaschannel9110 5 күн бұрын
"Hi ByteGrad, which Visual Studio Code extension are you using for auto code suggestions? Please let me know."
@RomFeliciano
@RomFeliciano 15 күн бұрын
Hi, how can you display the error in client?
@marbot9780
@marbot9780 3 ай бұрын
Hello - i am a big fan of your videos - you are great! But where can i find the sourcecodes? Kind regards Markus
@assassingob7315
@assassingob7315 5 ай бұрын
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
@GriMoney
@GriMoney 22 күн бұрын
turborepo + prisma + next.js ?
@jc2057
@jc2057 3 ай бұрын
good video, and definitely good commercial for copilot lol
@parkerboling666
@parkerboling666 5 ай бұрын
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!
@MdNaimurRahmanHera
@MdNaimurRahmanHera 3 ай бұрын
Best by far
@socarmm
@socarmm 3 ай бұрын
Excelente! Gracias
@victormustin2547
@victormustin2547 5 ай бұрын
I may be wrong but I don't think you talked about security and authorization which would have been great
@zainn7336
@zainn7336 5 ай бұрын
Sir make a full video of supabase and next js as backend
@ianc6418
@ianc6418 5 ай бұрын
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!
@Grishopping
@Grishopping 2 ай бұрын
turborepo with prisma and next.js ?????
@true227
@true227 4 ай бұрын
i can't find data type cuid() in the description postgre, it's have only uuid()
@viundesign
@viundesign 5 ай бұрын
6:33 Why doesn't it appear to me the autocomplete? I have the Prisma extension already installed
@mustafamufeed1666
@mustafamufeed1666 5 ай бұрын
+1
@viundesign
@viundesign 5 ай бұрын
Still wondering
@viundesign
@viundesign 4 ай бұрын
@@mustafamufeed1666 Git Hub Copilot
@viundesign
@viundesign 4 ай бұрын
@@mustafamufeed1666 Git Hub Copilot
@suphawatwong9438
@suphawatwong9438 4 ай бұрын
@@viundesign it's co-pilot feature, i guess
@sankasanjeeva1182
@sankasanjeeva1182 13 күн бұрын
An extensive scope within a limited timeframe
@faijansaifi
@faijansaifi 3 ай бұрын
Should I use sqlite in production with prisma
@mlavinb
@mlavinb 5 ай бұрын
Great content! thanks for sharing
@vipernext2190
@vipernext2190 5 ай бұрын
as always greate video ❤❤
@enn_nj
@enn_nj 5 ай бұрын
The best video from the best teacher 🙏🏻🙏🏻🙏🏻🙏🏻i really like this Chanel.
@nasko235679
@nasko235679 5 ай бұрын
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 5 ай бұрын
That would be pretty typical yes
@MrJohn360
@MrJohn360 3 ай бұрын
Thanks for sharing.
@arkodeepchatterjee
@arkodeepchatterjee 3 ай бұрын
not only a simple prisma course
@teetanrobotics5363
@teetanrobotics5363 5 ай бұрын
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.
@krishpatel3632
@krishpatel3632 5 ай бұрын
What vs code theme do you use? It's great
@umernasir4217
@umernasir4217 5 ай бұрын
Please tell me as well.
@AvikNayak_
@AvikNayak_ 5 ай бұрын
Maybe Andromeda
@heismyke
@heismyke 5 ай бұрын
He doesnt like to tell people what theme he uses. i have been asking him too for a long time
@gttrackpro9433
@gttrackpro9433 5 ай бұрын
hey @bytegrad, this workflow & advance tutorial is available on your course?
@ByteGrad
@ByteGrad 5 ай бұрын
We also use Prisma in the course, but not super advanced or something like that
@gttrackpro9433
@gttrackpro9433 5 ай бұрын
​@@ByteGrad ok got it. going to purchase your course asap 🎉
@asmitkhanal834
@asmitkhanal834 5 ай бұрын
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
@nikolas_beckel
@nikolas_beckel 3 ай бұрын
Good video 👌
@AK-kq1mk
@AK-kq1mk 4 ай бұрын
Useful stuff
@nasko235679
@nasko235679 5 ай бұрын
NICE!
@A28480
@A28480 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@emad_naeim thank you very much
@emad_naeim
@emad_naeim 5 ай бұрын
@@A28480 😇🤍
@goofy1982
@goofy1982 Ай бұрын
My form does not reset automatically, how is that possible?
@haashirnawaz9687
@haashirnawaz9687 2 күн бұрын
revalidatePath
@abdelrahmanmostafa9489
@abdelrahmanmostafa9489 5 ай бұрын
Github link?
@blazi_0
@blazi_0 5 ай бұрын
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 5 ай бұрын
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.
@juliusgrisette
@juliusgrisette 5 ай бұрын
Thank you
@imkeyi
@imkeyi 5 ай бұрын
what if a post could have multiple categories and tags
@richardnorris9256
@richardnorris9256 4 ай бұрын
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.
@ivangeorge4478
@ivangeorge4478 5 ай бұрын
45:52 what was that sound :)
@eliyir
@eliyir 5 ай бұрын
🙏
@haikelareff
@haikelareff 5 ай бұрын
god bless you...
@nickwoodward819
@nickwoodward819 Ай бұрын
prisma studio seems to completely ignore not null constraints
@ahmadullahnikzad2850
@ahmadullahnikzad2850 4 ай бұрын
revalidatePath does not work
@rvuyyuru
@rvuyyuru 5 ай бұрын
Switched to drizzle
@jellyfish1772
@jellyfish1772 5 ай бұрын
why not drizzle
@bibblebabl
@bibblebabl 5 ай бұрын
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 5 ай бұрын
@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.
@beyourahi
@beyourahi 5 ай бұрын
alright let's start the war 🚀 Prisma VS Drizzle
@dukim632
@dukim632 4 ай бұрын
i find primsa to be pretty horrible tool, the fact that we all opt out writing SQL is just mad. ORM creates stupid developers which cannot write proper SQL which creates TONS of problems later on
@true227
@true227 4 ай бұрын
i'm totally agree
@Oscarvedo
@Oscarvedo 3 ай бұрын
Mostly with migrations and trouble solving. Yeah.
@AbdulOKOUNDEBATOUMI
@AbdulOKOUNDEBATOUMI Ай бұрын
I disagree for the fact that, technologies are shipped out for conscious used. One thing to level here is that, you very sure of writing your SQL queries well before diving to Orm like prisma…. Just like you can choose to use Eloquent or raw SQL in your Laravel project. Just know what you’re good at and whats your project requirements
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 201 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 9 МЛН
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 13 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Is Drizzle Really Better Than Prisma?
20:15
Web Dev Simplified
Рет қаралды 88 М.
Migration Lesson: Don't Use Prisma | Prime Reacts
29:16
ThePrimeTime
Рет қаралды 160 М.
NVIDIA’s New AI: Stunning Voice Generator!
6:21
Two Minute Papers
Рет қаралды 110 М.
NextJS Tutorial - All 12 Concepts You Need to Know
44:38
ByteGrad
Рет қаралды 352 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 66 М.
Fetching Data Doesn't Get Better Than This
6:58
Josh tried coding
Рет қаралды 135 М.
Next.js with a separate server - good idea?
22:53
ByteGrad
Рет қаралды 69 М.
Learn Prisma In 60 Minutes
59:25
Web Dev Simplified
Рет қаралды 427 М.
Why is Python 150X slower than C?
10:45
Mehul - Codedamn
Рет қаралды 30 М.