[GODRIVER-916] Cursor method to decode all results into a slice Created: 01/Apr/19 Updated: 28/Oct/23 Resolved: 19/Apr/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | CRUD |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Scott L'Hommedieu (Inactive) | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Provide a method to return all remaining documents as a slice This will be functionally equivalent to mgo's All method. |
| Comments |
| Comment by Githook User [ 24/Apr/19 ] |
|
Author: {'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora', 'username': 'divjotarora'}Message: Add All method to mongo.Cursor Change-Id: I6eca805d21a1950b6cee808248ec6edbd9dcf8bc |
| Comment by Githook User [ 19/Apr/19 ] |
|
Author: {'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora', 'username': 'divjotarora'}Message: Add All method to mongo.Cursor Change-Id: I6eca805d21a1950b6cee808248ec6edbd9dcf8bc |
| Comment by Divjot Arora (Inactive) [ 15/Apr/19 ] |
|
CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/450304 |
| Comment by Ian Whalen (Inactive) [ 15/Apr/19 ] |
|
divjot.arora can you please link to the CR? |
| Comment by David Golden [ 01/Apr/19 ] |
|
For API design, please consider whether it should work like append: take a user-provided slice and try to fill it if it can or return a different slice if the original isn't large enough. |