How can I use collection
as schema property name?
#13956
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
Prerequisites
Mongoose version
7.6.0
Node.js version
19.4.0
MongoDB version
7.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
No response
Issue
After doing lots of research, I still can't understand how I can use
collection
as property name in schema because it's a reserved key.The text was updated successfully, but these errors were encountered: