[GODRIVER-1007] Querying UUID field Created: 29/Apr/19 Updated: 27/Oct/23 Resolved: 20/Jun/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Syed Gillani | Assignee: | Jeffrey Yemin |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Hi, I'm using the latest version of the Mongo Go driver, but I can't seems to find a way to query a UUID field (that I have as a string). For instance: `stringUUID := "d392596d-9a86-4e55-8a47-a4b831825906"` ` filter := M { "field": stringUUID, }` I've tried to use the `primitive.Binary` struct it the required `subType` and string as `[]byte`. However, it doesn't seems to work.
In the MongoDB, I've it as ` "field" : UUID("d392596d-9a86-4e55-8a47-a4b831825906")` Syed
|
| Comments |
| Comment by Jeffrey Yemin [ 20/Jun/19 ] |
|
Hi syd, Since we haven't heard back from you I'm going to close this issue, but if you get back to it sometime in the future happy to re-open. |
| Comment by Jeffrey Yemin [ 29/May/19 ] |
|
Hi syd, Sorry to take so long to get back to you. Before we proceed, can you let me know how the UUIDs made it into the database in the first place. As in, which driver (or shell) did you use to insert the documents? |