mongooseMongoose Population


Syntax

  1. Model.Query.populate(path, [select], [model], [match], [options]);

Parameters

ParamDetails
pathString - The field key to be populated
selectObject, String - Field selection for the population query.
modelModel - Instance of the referenced model
matchObject - Populate conditions
optionsObject - Query options