Skip to content

Commit 64a8391

Browse files
committed
docs(populate): fix using markdown inline codeblocks
1 parent 3d4378b commit 64a8391

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/populate.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ user and have a good reason for doing so.
4949
<li><a href="#populate_multiple_documents">Populating multiple existing documents</a></li>
5050
<li><a href="#deep-populate">Populating across multiple levels</a></li>
5151
<li><a href="#cross-db-populate">Populating across Databases</a></li>
52-
<li><a href="#dynamic-ref">Dynamic References via `refPath`</a></li>
52+
<li><a href="#dynamic-ref">Dynamic References via <code>refPath</code></a></li>
5353
<li><a href="#populate-virtuals">Populate Virtuals</a></li>
5454
<li><a href="#count">Populate Virtuals: The Count Option</a></li>
5555
<li><a href="#match">Populate Virtuals: The Match Option</a></li>
@@ -275,7 +275,7 @@ story; // null
275275

276276
If you want to filter stories by their author's name, you should use [denormalization](https://www.mongodb.com/blog/post/6-rules-of-thumb-for-mongodb-schema-design-part-3).
277277

278-
<h3 id="limit-vs-perDocumentLimit"><a href="#limit-vs-perDocumentLimit">limit vs. perDocumentLimit</a></h3>
278+
<h3 id="limit-vs-perDocumentLimit"><a href="#limit-vs-perDocumentLimit"><code>limit</code> vs. <code>perDocumentLimit</code></a></h3>
279279

280280
Populate does support a `limit` option, however, it currently
281281
does **not** limit on a per-document basis for backwards compatibility. For example,
@@ -485,9 +485,8 @@ const events = await Event.
485485
populate({ path: 'conversation', model: Conversation });
486486
```
487487

488-
<h3 id="dynamic-ref"><a href="#dynamic-ref">Dynamic References via `refPath`</a></h3>
489-
490-
Mongoose can also populate from multiple collections based on the value
488+
<h3 id="dynamic-ref"><a href="#dynamic-ref">Dynamic References via <code>refPath</code></a></h3>
489+
<code>
491490
of a property in the document. Let's say you're building a schema for
492491
storing comments. A user may comment on either a blog post or a product.
493492

0 commit comments

Comments
 (0)