-
I am getting an error while write the following code
The error here occurs say the following I just want to update the title of a post, using the post id but it shows the above error |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is an "error" of the persistence library (DB) and not a direct type-graphql one. |
Beta Was this translation helpful? Give feedback.
-
Someone from reddit helped me, saying
I fixed it my changing my const post variable |
Beta Was this translation helpful? Give feedback.
Someone from reddit helped me, saying
I fixed it my changing my const post variable
const post= await em.findOne(Post, { id });
So the answer is solved