in code: (mutation.js) `const hasUser = noteCheck.favoritedBy.indexOf(user.id);` throwing internal server error^ `"message": "noteCheck.favoritedBy.indexOf is not a function",` am I wrong?
in code: (mutation.js)
const hasUser = noteCheck.favoritedBy.indexOf(user.id);throwing internal server error^
"message": "noteCheck.favoritedBy.indexOf is not a function",am I wrong?