You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
When we override mongoose custom methods like toString() on a schema, then we console.log with a template literals expressions string, we got this error.
TypeError: Cannot convert object to primitive value
at Comment.findOne.then.comment (/test.js:37:58)
If the current behavior is a bug, please provide the steps to reproduce.
repro script:
What is the expected behavior?
Override mongoose custom methods without using the createWrapper of Kareem lib if the method does not have a hook ( look at /mongoose/lib/services/model/applyHooks.js:67) Please mention your node.js, mongoose and MongoDB version.
Node v9.11.1
MongoDB v3.2.20
Mongoose v5.1.3
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
When we override mongoose custom methods like toString() on a schema, then we console.log with a template literals expressions string, we got this error.
If the current behavior is a bug, please provide the steps to reproduce.
repro script:
What is the expected behavior?
Override mongoose custom methods without using the createWrapper of Kareem lib if the method does not have a hook ( look at /mongoose/lib/services/model/applyHooks.js:67)
Please mention your node.js, mongoose and MongoDB version.
Node v9.11.1
MongoDB v3.2.20
Mongoose v5.1.3
The text was updated successfully, but these errors were encountered: