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
What is the expected behavior?
The example should demonstrate the text, i.e., show how overriding the discriminator _id can be worked around.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node.js - 13.8.0
Mongoose - 5.8.12
MongoDB - 4.2.3.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The text describing the behavior of cust _id fields doesn't match the example. The text says:
But the example does demonstrate this workaround, it simply shows how the custom _id on the base schema overrides the discriminator schema.
If the current behavior is a bug, please provide the steps to reproduce.
Review of the documentation at https://mongoosejs.com/docs/discriminators.html#handling-custom-_id-fields
What is the expected behavior?
The example should demonstrate the text, i.e., show how overriding the discriminator _id can be worked around.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node.js - 13.8.0
Mongoose - 5.8.12
MongoDB - 4.2.3.
The text was updated successfully, but these errors were encountered: