4 ms·
Mind if I ask the reason why you’d pick GraphQL as the default API technology?
by appwiz 7y ago
Mind if I ask the reason why you’d pick GraphQL as the default API technology?
- gremlinsinc 7y agoI'd pick graphql ((I'm currently Using Hasura) because you can combine api's local and remote into one. You can also only ever worry about one endpoint and there are a lot of tools to create all the graphQL straight from the db : Postgraphile / Hasura are two that come to mind. Prisma is a little different but makes graphql easier. Rest you have way more code to worry about, way more end points, you always have to figure which endpoint to send stuff too, and you usually have no control over how much data you're going to get back.. if you get back fifty fields, but only needed the email that's a lot of data that could interfere with performance.
- appwiz 7y agoYep, I’m familiar with the benefits of GraphQL (I built AWS AppSync and AWS Amplify). I’m interpreting from your response that the codegen and tooling for GraphQL saves a lot of time to create the usual API cruft and that’s why you prefer it. Is my understanding correct?