[GODRIVER-1129] mongo.Cursor.All is undefined Created: 12/Jun/19  Updated: 27/Oct/23  Resolved: 17/Jun/19

Status: Closed
Project: Go Driver
Component/s: CRUD
Affects Version/s: 1.0.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Carl-Fredrik Grimberg Assignee: Divjot Arora (Inactive)
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

macOs Mojave 10.14



 Description   

Calling mongo.Cursor.All produces `cur.All undefined (type *mongo.Cursor has no field or method All)` in 1.0.3 which is odd

I'm using go mod and I was thinking maybe I got an older version but I have this line in go.mod

go.mongodb.org/mongo-driver v1.0.3

 



 Comments   
Comment by Carl-Fredrik Grimberg [ 18/Jun/19 ]

ok. fair enough.

Comment by Divjot Arora (Inactive) [ 17/Jun/19 ]

grimberg The Cursor.All method will be introduced in version 1.1.0 and has not been backported to the 1.0.3 release because it is not a bugfix. Unfortunately, GoDoc tracks the master branch and does not allow specifying driver version, so it shows the method in its documentation.

Generated at Thu Feb 08 08:35:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.