[DOCS-14743] Off-by-one error in one-to-many document example Created: 17/Aug/21  Updated: 30/Oct/23  Resolved: 18/Aug/21

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Minor - P4
Reporter: Stennie Steneker (Inactive) Assignee: Stennie Steneker (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 2 years, 25 weeks ago

 Description   

Per https://www.mongodb.com/community/forums/t/119902, the example on https://docs.mongodb.com/manual/tutorial/model-embedded-one-to-many-relationships-between-documents/ which represents "ten most recent reviews" includes an implied range of 11 IDs rather than 10:

Then, in the code, there are 11 reviews (from review_id 786 to 776 inclusive)

The tenth document _id should be 777



 Comments   
Comment by Githook User [ 18/Aug/21 ]

Author:

{'name': 'Stephen Steneker', 'email': 'git@stennie.dev', 'username': 'stennie'}

Message: DOCS-14743: Off-by-one error in one-to-many document example
Branch: master
https://github.com/mongodb/docs/commit/3ad52c23931b33d7300905140ea0d27959dedad6

Generated at Thu Feb 08 08:11:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.