Consider changing from juniper::ID
to uuid::Uuid
#14
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This would technically reduce some of our code, if we used the hyphenated form of UUIDs.
But here's the problem:
Almost all (de)serializations are to/from the hyphenated form due to it being the default in
Uuid
's implementation ofDisplay
, but we currently use the simple form i.e. without hyphens.The original thought behind choosing the simple form of UUIDs was to reduce storage space in the database and bandwidth in the query responses. It's just four hyphens per UUID though. 🤔
Moving to
uuid::Uuid
means we would have to do one of the following:Encode
/Decode
/Type
traits for every struct usingUuid
, and juniper'sGraphQLScalar
if we also want it the same way on the frontend (more code)Uuid
s toSimple
and then toString
and then toID
(same code)Is it worth it? What are your thoughts?