O'Reilly logo
  • Patrick S thinks this is interesting:

  • path: This is the path to populate and is required.
  • select: This is a string or object specifying which paths to return.
  • model: This is the name of the model you want to populate from. It defaults to the reference specified in the schema if not declared here.
  • match: This can specify query conditions.
  • options: This can specify query options.

So if we wanted to populate a maxim...


Cover of Mongoose for Application Development


populate to return subset