z5labs/gogm

allow `uuid` to be named arbitrarily

nettrino opened this issue · 1 comments

Feature Request:

It would be useful to allow setting the equivalent of a uuid strategy without naming the field UUID necessarily. This is due to the fact that uuids are generally non-human readable, but one could choose to set a unique string a a primary key without confusing it with the typical UUID format. Moreover, one might not want uuid fields present in neo4j and pk=UUID forces this behavior.

Would you be interested in implementing this feature?

Yes

Apologies this must be doable via a custom PrimaryKeyStrategy 🤦