Skip to content

Commit db3f800

Browse files
authored
docs: fix type for aggregation cursor unwind param (#2636)
NODE-2895
1 parent cdb614d commit db3f800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/aggregation_cursor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class AggregationCursor extends Cursor {
202202
/**
203203
* Add a unwind stage to the aggregation pipeline
204204
* @method
205-
* @param {number} field The unwind field name.
205+
* @param {(string|object)} field The unwind field name or stage document.
206206
* @return {AggregationCursor}
207207
*/
208208
unwind(field) {

0 commit comments

Comments
 (0)