Комментарии:
Hello, thank you for the great video! 1 question, is it necessary to call "await connectMongoDB();" each time we make a request to the api? Thank you
ОтветитьGreat and very helpful tutorial...Just a quick note, in addTopic page, we can use router.replace("/") instead router.push(/) to auto refresh the routed page ..thanks so much
ОтветитьThank you So much brother.
Love From India 😀
Quick question. Is it advisable to connect to mongo db on every request?
ОтветитьI've to reload the home page after adding a topic, otherwise it just doesn't show up..
How to fix this ?
I recommend showing us how to add pagination
ОтветитьWhat extension you are using?
Ответитьit is necessary to close the mongo connection after request complete
ОтветитьYou are the guy!!! thanks a lot bro.
ОтветитьThis video is fantastic man, thanks a lot ! However, does anybody know how to implement the same scenario using the Mongo Driver for Node.js?
ОтветитьThank you very much for the lesson. "addTopic" how could we fetch this page even though it is use client. Aren't fetch operations in Nextjs also in Server Components?
ОтветитьI struggled for a good week to connect with my MongoDB but you made it easy and very didactic, thank you for your time and knowledge, this video is Goooold 💰
ОтветитьSomething that I have learnt without understanding a line, you just made it so easy like 'abc', thankyou very much for this amazing teaching technique. I must request a video on how I can upload images and text content to Cloudinary & MongoDB. Thank you so much
ОтветитьThanks for this great video.
ОтветитьThe GET method is not working 🥲🥲🥲 Please help!
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at connect (C:\Users\harig\AppData\Desktop\test1\node_modules\next\dist\compiled\undici\index.js:1:65301) {
code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'
}
}
Can you tell me which theme are you using.? Please answer 😢
ОтветитьIs this client side rendering or server side rendering ?
Ответитьat 30.20 method GET in my postman I have 500 internal server error, what's problem?
ОтветитьExcellent tutorial mate! Your teaching style and voice reminds me of Mumshad Mannambeth of KodeCloud.
ОтветитьPretty good stuff! I was able to create a nice CRUD. Thanks!
Ответитьwhy i use fetch in a "use client" to add a posts to db, it has a error, async/await only support in server component
ОтветитьThanks you so much for the clear and well explained tutorial
ОтветитьI can add topic but I must refresh for it to show it in the main list, but in the video you don´t refresh, it just appears there after submiting post. Help please!
ОтветитьThank you for the course ! I;m stunning on a bug some how that after I add a new Topic with my POST route that I have to refresh the page before the item is showed that there is added a new topic.
any one else have the samen problem, or am I the only one.
hey, your video really helped me but it also left me with one question. I tried to use the entire mongoose code (connecting, schema, creating collection) at the client side of the next js project and it didn't worked. I only managed to create a empty collection with the name i specified in the code, other than that It failed to create documents. Why did this happen? does mongoose only work at the server side ?
ОтветитьThank you.
ОтветитьHello, i have an error: "TypeError: undefined is not an object (evaluating '(mongoose__WEBPACK_IMPORTED_MODULE_0___default().models).Element')". I tried to use the older version of Mongoose, and downgraded it to 7.3.0 which is the one you're using in the tutorial but still couldn't solve.
Anyone has an idea?
Could you make a video securing the APi with a key or authentication?
ОтветитьMan i was so sceptical when i started watching this video but man i was wrong not watching it sooner this is just amazing thank you so much
Ответитьso with the newest version of the app router there might be a .map error. So I had to use: await connectMongodb();
return await Topic.find(); to fix it. Just curious why it wanted me to that instead of the first way.
Very nice video! Your didatics are so good, keep it up man!
ОтветитьTypeError:fetch failed ......?
Ответить10/10 guide thank you so much
ОтветитьOla Mestre, sou do Brasil e quero agradecer por compartilhar seu conhecimento, simples e eficiente, thank you !!!!
ОтветитьWo very helpful great project❤❤ I have learned so much🎉
Ответитьmay be this is 1 hour video but i took 3 hours to learn i shifting my carrier to js from python ... will come back soon as i create complex project i will come and post in
replay section
HI. I keep getting "connected to MongoDB" non-stop in the logs. How do I fix this?
ОтветитьWhy did you put components out of app folder? I didn't understand why EditTop form you put in components folder and AddTopic you put in App folder.
ОтветитьWhen i click on get request on postman, it is showing me error 500 internal server, what reason it is happening?
ОтветитьThis video is enough to understand crud in next js in very simple way.
ОтветитьMongooseError: Can't call `openUri()` on an active connection with different connection strings. Make sure you aren't calling `mongoose.connect()` multiple times.
ОтветитьIn a production environment such as Vercel, what do I write instead of localhost:3000 in order to access my task list? I can call my mongoose models directly but wouldn't that beat the purpose of fetching from a local api?
ОтветитьBru whenn u want to add topic i can add it but i must to refresh to show it
ОтветитьI have just one request, please don't stop making tutorials like this. Very helpful. Much thanks!
ОтветитьI run the CRUD in dev fetch request works in development, but fails in build on production.
ОтветитьOkay this is a big waste of time. You're not explaining anything. You are just writing code and saying what you're writing. It's not helpful to a learner. You haven't covered the basics of Next.js and I'm so lost! Waste of time. Label this video 'code-along' next time and not 'step-by-step' guide. Aghh I'm so angry. Dickhead!
ОтветитьTypeError: Cannot destructure property 'title' of 'topic' as it is undefined.
at EditTopic (./app/editTopic/[id]/page.jsx:30:13)
23 | }
24 | const {topic} = await getTopicById(id);
> 25 | const {title, description} = topic;
| ^
26 | return (
27 | <EditTopicForm />
28 | ).
hello i hope youre doing well, i got this error and it can't be solved i tried so many ways i get the same error idk why, the code is as same as yours it works on postman thou, but i keep seeing this error can you help me with it please. a very compelete and well explained tutorial thank you so much.