TICKET : add comments

I am stuck at this function add_comments. I don’t know why the “_id” and “result.inserted_id” are different(maybe because of sorting done in the get_movie??). Can anyone help me with that?

The most likely cause is that your get_movie does not return the comments in the required order.

1 Like

Comments were in descending order. The problem was I didn’t convert movie_id to ObjectId. Thanks for the help @steevej-1495 .