Mongoose - how to set document property to be another document?

Looks like author. Validate is async so that your console. Log(document) statement at the bottom executes before the callback where you set document.

Author . You need to put the processing that depends on document. Author being set inside of the callback.

It looks like the answer is to use a callback to set the document. Author and to define author in the Schema.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions