[GODRIVER-1264] Change default ObjectID generator Created: 30/Aug/19 Updated: 28/Oct/23 Resolved: 05/Sep/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | 1.1.0 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Francesco Gimignano | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Right now when I insert a document in the mongodb collection an object id is created like so: ``` wich is fine. But if for some reason i need to have UUID as ID, how can i tell the driver to do that? I have already tried giving the ID field in my struct the UUID type, but that didn't worked |
| Comments |
| Comment by Esha Bhargava [ 05/Sep/19 ] |
|
gimignanof.ecom@gmail.comThanks for your report. Please note that this project is for reporting bugs or feature suggestions for the driver. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group. |