Felipe Vignon

Results 7 comments of Felipe Vignon

Having the same issue. Any updates on this yet?

From what I could tell by reading the code, emailjs could be updated to the newest version without it breaking anything. That would fix this vulnerability. I'll try to make...

TypeError: this.$__path is not a function at String.Document.get (/app-root-folder/node_modules/mongoose/lib/document.js:1348:23) at model.get [as _id] (/app-root-folder/node_modules/mongoose/lib/helpers/document/compile.js:145:32) at model.idGetter (/app-root-folder/node_modules/mongoose/lib/plugins/idGetter.js:23:12) at VirtualType.applyGetters (/app-root-folder/node_modules/mongoose/lib/virtualtype.js:137:25) at model.Document.get (/app-root-folder/node_modules/mongoose/lib/document.js:1356:19) at applyGetters (/app-root-folder/node_modules/mongoose/lib/document.js:2986:22) at model.Document.$toObject (/app-root-folder/node_modules/mongoose/lib/document.js:2750:5) at...

I realize now this doesn't happen with just ANY mongoose document, I'll try to narrow down what the culprits could be.

Ok, I was able to figure out how to reproduce the issue. This error only happens when there are nested objects in schema AND option `toJSON.virtuals` is set to `true`....

So, the problem seems to be when mongoose tries to get the "id" virtual of a subdocument. Declaring this schema, which is equivalent to the one above, will also work...

Hey @BridgeAR, I have checked it and it does work! =] I'm just a little apprehensive in using it as it's said here to be experimental and all, but I'm...