Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7383

I believe there is a minor error in the ecosystem use-cases documentation

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      See: https://docs.mongodb.org/ecosystem/use-cases/storing-comments/#hybrid-schema-design

          # Find this discussion's comment buckets
          buckets = db.comment_buckets.find(
              { 'discussion_id': discussion_id },
              { 'bucket': 1 })
          buckets = buckets.sort('bucket')
      

      I believe that the

      {'bucket': 1} 

      should not be included in the find, as this would only return a single bucket (which doesn't make sense to be sorted or iterated over as is done in the example).

            Assignee:
            Unassigned Unassigned
            Reporter:
            alexander.marquardt Alexander Marquardt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              8 years, 4 weeks, 4 days ago