Best way to generate an UUID for the id field?

I don’t see any reason why it would not work with Absinthe. If You use node interface, You will see that GraphQL has a very simple way to generate unique node id.

Secure enough? I don’t think it is used for security reason, but to ensure uniqueness. Unless guessing the id leads to security issues.

I have also used KSUID with Ecto without problem. It does add time order to keys.

There is an example of KSUID in Mastering Elixir (Self-published / Packt)

1 Like