[GODRIVER-240] mongo-go-driver/bson: Builder type does not exist Created: 13/Feb/18 Updated: 16/Feb/18 Resolved: 16/Feb/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | 0.0.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | roger peppe | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
The [documentation](https://godoc.org/github.com/mongodb/mongo-go-driver/bson) says: " > The Builder type is used to create a BSON document. The type only allows the iterative building of a document, so there is no way to verify the contents outside of writing the document. If you have a Builder and need to conditionally add a field, you can write the document to a byte slice and use the Reader type to lookup the desired document, but in this case you should probably use a Document instead. However there is no `Builder` type defined anywhere in that package, which is misleading. |
| Comments |
| Comment by Kristofer Brandow (Inactive) [ 16/Feb/18 ] |
|
This looks like a duplicate of |