diff --git a/docs/populate.md b/docs/populate.md index 58226e65130..26f1b842852 100644 --- a/docs/populate.md +++ b/docs/populate.md @@ -473,7 +473,8 @@ const events = await Event. ```

Dynamic References via refPath

- + +Mongoose can also populate from multiple collections based on the value of a property in the document. Let's say you're building a schema for storing comments. A user may comment on either a blog post or a product.