Little mistake in documentation - Model One-to-Many Relationships with Embedded Documents

Hi,
There is a little mistake in the documentation in this page: https://docs.mongodb.com/manual/tutorial/model-embedded-one-to-many-relationships-between-documents/

The product collection stores information on each product, including the product’s ten most recent reviews:

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

Thanks,
Rafael,

1 Like

Hi @Rafael_Green,

Great catch on the off-by-one error (assuming no sequential reviews were deleted).

I reported this as https://jira.mongodb.org/browse/DOCS-14743 and submitted a GitHub PR with a quick fix.

FYI, you can also create DOCS issues directly and the documentation is open for contribution if you are interested :slight_smile: .

Regards,
Stennie

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.