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
@sanjarcode we'll adjust the docs, this warning is a bit overzealous. There aren't significant implications of adding ref to a particular property. We just advise using ObjectIds for refs for consistency because MongoDB generates ObjectIds for _id by default, so if you prefer numbers or UUID buffers you need to be careful that you're consistently generating numbers or UUIDs for ids. This was more important in older versions of Mongoose before setDefaultsOnInsert was enabled by default.
vkarpov15
added
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
and removed
help
This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
help wanted
labels
May 16, 2023
Prerequisites
Mongoose version
7.1.1
Node.js version
16.17.0
MongoDB version
6.0.5
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
20.04
Issue
What are the implications of types if set on a ref, is missing?
Location:
mongoose/docs/populate.md
Line 36 in ecb0249
The text was updated successfully, but these errors were encountered: