4 ms·
What I meant is that you probably would use the same SQL script to fetch from your database the data. GraphQL is not responsible for talk to your database. If y
by fefb 8y ago
What I meant is that you probably would use the same SQL script to fetch from your database the data. GraphQL is not responsible for talk to your database. If you have a SQL database, you must specify the SQL script to fetch the data as well as RESTFUL. Pay attention that GraphQL is not a database technology, Graphql is a query language for APIS.
- iEchoic 8y agoYeah, understood. I’m saying that you often don’t use the same SQL script you would if you were using GraphQL, because when you’re writing a SQL script for a very specific user experience you can often make optimizations that only work given the constraints of that experience and the data it needs.
- fefb 8y agoOh gotcha. Yes, agree. In general a rest system will be faster than GraphQL. The GraphQL abstraction layer decrease the response time. Another point against GraphQL is if the object design has much resolver fetching database style, it will make a bunch of requests to the database that can overload the system or increase your bill.