The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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 (62) [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!