[GODRIVER-757] README out of date WRT using nil in Find Created: 08/Jan/19 Updated: 28/Oct/23 Resolved: 29/Jan/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Documentation |
| Affects Version/s: | 0.2.0 |
| Fix Version/s: | 0.3.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Chunming Li (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 |
|
README and doc suggested using nil as the filter doc
However as far as I can tell this will lead to a nil error according to https://github.com/mongodb/mongo-go-driver/blob/80e6fbdb941cebf741d02e5e848585d2d06ee8d2/mongo/collection_internal_test.go#L375-L376 |
| Comments |
| Comment by Githook User [ 29/Jan/19 ] |
|
Author: {'username': 'divjotarora', 'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora'}Message: Change nil to bson.D in documentation examples. Change-Id: Ice9647faaedc235d6ae6915c2a7d46060fa0a461 |
| Comment by Dylan Parker [ 29/Jan/19 ] |
|
Just noticed there was a dupe of this in Jira. In the event you haven't updated the readme yet I have an open PR for it I'll link below to save you some time. https://github.com/mongodb/mongo-go-driver/pull/134 |