Hi Everyone,
Hope you are enjoying the course. If you are struggling with
Create/Update Comments
Ticket, please follow these amazing points mentioned by @Luis_40892.
i finally figured it out. in my case, there was nothing wrong with my
update_comment()
, nordelete_comment()
code, but there were 2 other functions that i had to tweak to get the validation codes.for others running into this same issue, make sure that:
- the comments returned in the mongo doc by
get_movie()
are sorted in descending order bydate
movie_id
inadd_comment()
gets converted toObjectId
comment_id
inupdate_comment()
anddelete_comment()
is also converted toObjectId
i really wish there were better feedback from the api, and by the way, you can get a validation code from the Get Comments ticket, even if you donβt sort the returning result, which might be the reason why there is this many posts related to this issue.
Please do not hesitate to create a new topic if you are still facing issues.
Kanika