What mean ref in mongoose?
It stands for Reference. The value, in your case Person
is the model it references. It means that the author is of type Person
It stands for Reference. The value, in your case Person
is the model it references. It means that the author is of type Person