4 ms·
not really sure what the issue here is we use UUID's exclusively and it maps to a scalar uuid type without any issues do you mind explaining a bit more?
by diveanon 5y ago
not really sure what the issue here is
we use UUID's exclusively and it maps to a scalar uuid type without any issues
do you mind explaining a bit more?
- nirvdrum 5y agoI suppose with a dynamic language, it may not be much of a problem. But, with a statically typed language you end up with a situation where your IDs are not GraphQL ID types and can't be without type coercion. Since the uuid type isn't standard, you need to add some sort of serialization to and from the uuid type. It results in a lot of unnecessary ceremony just to work with IDs. I could be mistaken, but I think it also creates issues with client libraries that want to cache around an object ID, as the type is not a GraphQL ID.
- diveanon 5y agoOk that makes sense. We are using typescript and graphql-codegen to generate our types and haven't run into that issue.