easante (110) [Avatar] Offline
#1
Below Table 17.2--Data relationship, where the relationship between two models are described, the type definition is incorrect. The bold text in the part of the sentence below

... associated model's name where the type is Schema.Types.ObjectId

has to be

mongoose.Schema.Types.ObjectId

The two pages following this also have this typo.
TheWexler (56) [Avatar] Offline
#2
Sorry for the late reply. I do understand your point here. I intended to use object destructing earlier in the file to pull Schema out from the mongoose library. This would allow us to use Schema.Types.ObjectId instead of mongoose.Schema.Types.ObjectId . See https://mongoosejs.com/docs/guide.html.

I'll be sure to clarify that point in the text. Thanks for the comment!