Map UUID keys as GraphQL "ID" type
See original GitHub issueCurrently, Hasura creates a new scalar type called uuid
for UUID keys. Because it’s a non-standard type, using it with clients usually means jumping through some hoops to treat the value as a string. But, that’s really all the standard ID
type does anyway, as far as I know. I think if this type were remapped in the schema, it’d improve the ergonomics of working with a Hasura-based GraphQL server.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:36
- Comments:26 (13 by maintainers)
Top Results From Across the Web
GraphQL and UUID type on Postgres - Hasura
Common practice is to use serial ids as primary keys. Serial ids are auto-incrementing integers, which are usually auto-generated by the ...
Read more >Should I use UUID on Graphql? - Reddit
I am planning to use Big Int primary keys in a few of Django models. ... Should I use UUID in a DB...
Read more >GraphQL schema basics
ID (serialized as a String ): A unique identifier that's often used to refetch an object or as the key for a cache....
Read more >Implementing Unique IDs in GraphQL | by Jonathan Shapiro
In practice, it is usually sufficient if the id field is unique-per-type, because GraphQL client caches concatenate the __typename field with ...
Read more >GraphQL Types, Resolvers, and Operators - MongoDB
Overview; Scalar Types; Document Types; Field Mapping; BSON Type Mapping ... Atlas App Services automatically generates a GraphQL schema for any collection ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jacdx Yes, this will be picked up very soon.
@coco98 @tirumaraiselvan Is there anything I can do to help move this along? This became a blocker for a project and I unfortunately haven’t used Hasura much since. I could take a crack at a PR, but I don’t want to sink time into something that’s already being worked on. I also would hate to do it up and find out it doesn’t match internal design goals.