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
I'm trying to define a schema with isSelected and embedded field but if I use both together, it will throw an exception saying doc.isSelected is not a function
C:\mongoose-9884\node_modules\mongoose\lib\document.js:2263
if (!doc.isSelected(path) && !doc.isModified(path)) {
^
TypeError: doc.isSelected is not a function
at C:\mongoose-9884\node_modules\mongoose\lib\document.js:2263:14
at Array.filter (<anonymous>)
at _getPathsToValidate (C:\mongoose-9884\node_modules\mongoose\lib\document.js:2262:71)
at model.Document.$__validate (C:\mongoose-9884\node_modules\mongoose\lib\document.js:2433:23)
at C:\mongoose-9884\node_modules\kareem\index.js:370:33
at processTicksAndRejections (internal/process/task_queues.js:75:11)
It works as long that I don't define the embedded schema, or I change from isSelected to something else
I'm using mongoose 5.11.13, mongodb 4.2.1
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to define a schema with
isSelected
andembedded
field but if I use both together, it will throw an exception sayingdoc.isSelected is not a function
It works as long that I don't define the embedded schema, or I change from
isSelected
to something elseI'm using mongoose 5.11.13, mongodb 4.2.1
The text was updated successfully, but these errors were encountered: