Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1264

Change default ObjectID generator

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.1.0
    • Component/s: BSON
    • Labels:
      None

      Right now when I insert a document in the mongodb collection an object id is created like so:

      ```
      ObjectId("5d691c2954ea84068f9e5b67")
      ```

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            gimignanof.ecom@gmail.com Francesco Gimignano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: