Looking through the code, it is impossible to have a custom ID on an embedded object. Rather than the
Ecto.UUID.generate/1, I’d prefer to just insert my own
3, ect. Anyone know why this is disallowed? I would prefer this were a protocol that I could implement for my embedded type which fell back to the UUID generator.
For databases like postgres this shouldn’t provide a problem as it won’t care about the field. I can understand if this was done because of Mongo, but would prefer like I said for this to be a protocol and have the Mongo adapter only enforce this…