DEV Community

Discussion on: GraphQL for PostgreSQL - Why?

 
benbot profile image
Benjamin Botwin

Most db -> graphql layers (like hasura or postgraphile) respect and/or even take into account the security policies and roles of the db when generating the graphql schema (basically the list of types, queries, and mutations that you can use to build graphql queries).

A graphql query (basically a GET request) or mutations (basically a POST request) would never simply be mapped to a raw sql query.