An experienced software developer with a strong background in developing award-winning web and mobile applications for diverse clients with 6+ years of industry experience.
That is the job of resolvers which are equivalent to route handlers in REST. They are different ways to specify them depending on your graphql server but the concept is the same: "return a value".
Can you talk about how to actually get data out of a MySQL or Postgres database?
No one ever talks about that part. Everyone just focuses on the Magic queries. Well, how do those queries map to my Postgres tables and relations?
That is the job of resolvers which are equivalent to route handlers in REST. They are different ways to specify them depending on your graphql server but the concept is the same: "return a value".
Besides hand writing all resolvers, you can also take a look at Hasura or Postgraphile if you want to skip writing basic resolvers.