Allow CUID (Collision-resistant ids) to be generated as IDs alongside UUID and regular Int/BigInt IDs.
Also, allow the creation of prefixed IDs per schema. For example, if I have an author schema, I could have a author_clevcj0g4000008k1gkpk9e6h as a Id.
Describe alternatives you've considered
Generating this manually before sending a mutation, but this creates a logic that could be inside Hasura.
Currently Prisma allows CUID natively (through their own ORM) and prefixes can be done via Middleware. But in Hasura it's only possible by messing directly with a query.
Is your proposal related to a problem?
No
Describe the solution you'd like
Allow CUID (Collision-resistant ids) to be generated as IDs alongside UUID and regular Int/BigInt IDs. Also, allow the creation of prefixed IDs per schema. For example, if I have an author schema, I could have a
author_clevcj0g4000008k1gkpk9e6h
as a Id.Describe alternatives you've considered
Generating this manually before sending a mutation, but this creates a logic that could be inside Hasura. Currently Prisma allows CUID natively (through their own ORM) and prefixes can be done via Middleware. But in Hasura it's only possible by messing directly with a query.