I have put together a reference model, a profile has one user (logon user). I am able to associate the User to the Profile when I create the user by passing in the User ObjectId.
Then, when I "populate" the Collection on the reference field (e.g. userRef), MongoDB Compass does not show the document. MongoDB Compass still shows the User ObjectID template type.
However, I can access the reference object from vsCode. For example, I log out the value of Profile.userRef on the instance of the Profile model, it returns the correct UserRef doc. It is just not visible in Compass...
Anyone come across this before?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…