Skip to content

Commit b28a842

Browse files
authored
MONGOID-5539: Fix example in aggregation reference documentation (#5536)
* Update aggregation.txt * Update aggregation.txt
1 parent 082f5d9 commit b28a842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/aggregation.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ could do the following:
7676
} },
7777
{'$project' => {_id: 1}},
7878
])
79-
bands = Band.find(band_ids)
79+
bands = Band.find(band_ids.to_a)
8080

8181
Note that the aggregation pipeline, since it is implemented by the Ruby driver
8282
for MongoDB and not Mongoid, returns raw ``BSON::Document`` objects rather than

0 commit comments

Comments
 (0)