Skip to content

Commit 05882c0

Browse files
authored
Fix formatting issues in FAQ section
1 parent 6c04d1b commit 05882c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,15 +456,15 @@ await doc.save();
456456

457457
To fix this error, either:
458458

459-
1) Load the full array before modifying and saving:
459+
(1) Load the full array before modifying and saving:
460460

461461
```javascript
462462
const doc = await BlogPost.findById(_id);
463463
doc.comments.id(commentId).text = 'Updated';
464464
await doc.save();
465465
```
466466

467-
2) Or use `updateOne()` / `updateMany()` with positional operators or `arrayFilters` so MongoDB can update the array atomically without requiring the full array on the document:
467+
(2) Or use `updateOne()` / `updateMany()` with positional operators or `arrayFilters` so MongoDB can update the array atomically without requiring the full array on the document:
468468

469469
```javascript
470470
await BlogPost.updateOne(

0 commit comments

Comments
 (0)