Mongoose Populate Function

This is what is returned:

{
	"_id": "62b89dc77a0a2ef69aee19cf",
	"ID": 66,
	"title": "Test Risk  3",
	"description": "Description, referncing Risk Catalog",
	"riskRating": 1,
	"riskCategory": null,
	"dateAdded": "2022-06-26T17:56:23.382Z",
	"__v": 0
}

I am also sure that the object ID exists in RiskCatalog collection.

1 Like