Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does GraphQL generate actual SQL queries?

Tags:

sql

graphql

I am new to GraphQL and can't seem to understand how GraphQL is able to integrate with relational databases. Does it convert a GraphQL query and generate the actual SQL query (with the proper joins) which is used for getting the data from the database?

like image 496
jj123456 Avatar asked Dec 10 '25 15:12

jj123456


1 Answers

GraphQL is a format for querying any type of data, but relational databases are where most data in the world lives, so there is software such as Apollo Server that implements reads and writes to databases, and naturally they would use SQL since that's how they work.

like image 131
Jon Wilson Avatar answered Dec 13 '25 09:12

Jon Wilson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!