Create/Update Comments

Hi everyone ,
i couldnt get the Validation Code in Create / Update Comments : Unable to retrieve movie comments
And the error is can’t map document to Movie Object : java.lang.String cannot be cast to java.util.Date

Btw i passed all 5 test method in UpdateCreateCommentTest

Here is my source code : https://gitlab.com/buihieu028/mflix

Could you help me to fix this ? Thanks

1 Like

Kanika

I tried date: ISODate(), but the error didn’t get away. Also, I tried new Date(), but the result was still the same

What error? Post a screenshot of what you are doing that shows the issue you are getting.