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.