-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
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).