I am stuck on the newTea POST.
My teas are posting but only with _id, comments, and __v properties.
Attached are screenshots of my postman and MongoDB as well as my GH repo.
I've reviewed my code and restarted the server multiple times to no avail.
From what I can test, the other controllers all seem to be working.
Any advice or feedback is appreciated.
Thank you!
Repository
Awsome article.. Clearly explained with all core working links. hey Victoria, Do you have any youtube channel.? I would love to subscribe?
I'm trying to follow along and loving the series, very well written and well explained. Thank you Victoria Lo :) But I'm running into an issue at the "Testing with POSTman" step.
Everything works up until this point except when I hit "send" in postman it throws me a ValidationError saying "path 'name' is required' in the form. When in fact, it's there. While trying to debug I found that the database and postman are connected correctly because if I set a default name it sends to Mongo no problem. But if the entry is not already given in schema in the "models" folder it doesn't send. Everything else works up to this point but I can't find my problem :( Any ideas?
Hi! I like so much your series. Thanks for share your knowledge.
I'm trying to code your tutorial on my own repo, but at this point, I can't make that two routes works like this post.
When I'm trying to delete a tea that is not on the collection, the message is the same "Tea deleted". But it dont delete any record, because it doesn't exist at all. Here I'm expecting the message "Tea doesn't exist."
And when post twice a new tea, with all the same values, it insert it anyway when we expect the message "Tea already exists".
The commit is here
I'm going to finish the proyect anyway and expect to solve in the future this issues.
Hey Victoria Lo, Great series till now!!! Helped me to recall the basics. Just a suggestion: it would be much easier to understand if you have used async/await or promise.then/.catch in place of callbacks.
The world needs to follow this series. This is just the perfect mini-nodejs course.
Well done Victoria Lo!
I am following it and loving it!
Really though, this series gets better and better.. ππ
Valentina Maraio
i'm a selfthought web dev
Love the series! but i do not understand how to add new tea to the db. I'm writing the newTea as in the code example but it doesn't work :(