Optional
foreignOptional
justIf true Mongoose will always set path
to a document, or null
if no document was found.
If false Mongoose will always set path
to an array, which will be empty if no documents are found.
Inferred from schema by default.
Optional
localOverwrite the schema-level local field to populate on if this is a populated virtual.
Optional
matchquery conditions to match
Optional
modeloptional model to use for population
Optional
optionsoptional query options like sort, limit, etc
space delimited path(s) to populate
Optional
percorrect limit on populated array
Optional
populatedeep populate
Optional
selectfields to select
Optional
strictoptional boolean, set to false
to allow populating paths that aren't in the schema
Optional
transformtransform function to call on every populated doc
Generated using TypeDoc
Overwrite the schema-level foreign field to populate on if this is a populated virtual.