by isoos · 8y ago · 0 comments
I mean, I get that react(-like) UI frameworks or node.js servers are happy using it, as this is their version of creating a "narrow" interface. However most platforms do support powerful type-to-serialization mappings through either reflection or code generation. We can create "narrow" interfaces easily, and these can be used with much less hassle than GraphQL.
Can somebody share their story if/when GraphQL were beneficial with a strongly typed language?
With those, we get type safety on input arguments, and can make sure that our data access layer maps from back-end data sources to our output GraphQL types.
[1] https://gist.github.com/adamkl/27539b3a8129f23e3576bfc37b3ea...