Document gotchas regarding typekey and fields named "type" #8227
Labels
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone
Do you want to request a feature or report a bug?
Neither ;) documentation.
What is the current behavior?
I noticed in code that there's special-case code for allowing fields called "type" - detected by type being a POJO with a field that's also called "type"...
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
I think the most logical way would be to mention both points here and reiterate the caveat of point 2 here
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
master branch
The text was updated successfully, but these errors were encountered: