Source Code: https://github.com/supabase/pg_graphql
pg_graphql adds GraphQL support to your PostgreSQL database.
- Open Source
pg_graphql reflects a GraphQL schema from the existing SQL schema.
The extension keeps schema translation and query resolution neatly contained on your database server. This enables any programming language that can connect to PostgreSQL to query the database via GraphQL with no additional servers, processes, or libraries.
The SQL schema
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Each table receives an entrypoint in the top level
Query type that is a pageable collection with relationships defined by its foreign keys. Tables similarly recieve entrypoints in the
Mutation schema that enable bulk operations for insert, update, and delete.