Create/Update Comments: Unable to update comment1

I dont know what to do can any one help?

–Source code removed per forum policy–

Hi @guru_sai

It looks like the code is almost correct, I’ve also had to remove the code as you are not meant to directly share code in the forums.

It looks like the _id for update_comment function has the correct field but the field has not been converted into an ObjectId(), if you pass this field within that function then I think your code should pass (specifically, the update_one call).

Kindest regards,

Thank you @Eoin_Brazil that worked

1 Like