{"id":13473967,"url":"https://github.com/supabase/pg_graphql","last_synced_at":"2025-05-13T23:10:48.065Z","repository":{"id":37562805,"uuid":"393159516","full_name":"supabase/pg_graphql","owner":"supabase","description":"GraphQL support for PostgreSQL ","archived":false,"fork":false,"pushed_at":"2024-10-28T19:47:06.000Z","size":10673,"stargazers_count":2900,"open_issues_count":40,"forks_count":103,"subscribers_count":40,"default_branch":"master","last_synced_at":"2024-10-29T14:39:10.458Z","etag":null,"topics":["api","graphql","graphql-server","postgres","postgresql","sql"],"latest_commit_sha":null,"homepage":"https://supabase.github.io/pg_graphql","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/supabase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["supabase"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-08-05T20:09:12.000Z","updated_at":"2024-10-27T11:26:25.000Z","dependencies_parsed_at":"2023-09-23T05:41:51.294Z","dependency_job_id":"b204a1e9-1912-4b66-9bc8-aeb1de4afe2c","html_url":"https://github.com/supabase/pg_graphql","commit_stats":{"total_commits":959,"total_committers":37,"mean_commits":25.91891891891892,"dds":0.3858185610010427,"last_synced_commit":"fc53beeda8f19a613f199ba3296d11f152ec91ee"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fpg_graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fpg_graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fpg_graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fpg_graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supabase","download_url":"https://codeload.github.com/supabase/pg_graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694895,"owners_count":20980734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","graphql","graphql-server","postgres","postgresql","sql"],"created_at":"2024-07-31T16:01:08.435Z","updated_at":"2025-04-10T10:46:32.561Z","avatar_url":"https://github.com/supabase.png","language":"Rust","readme":"# `pg_graphql`\n\n\u003cp\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/postgresql-14+-blue.svg\" alt=\"PostgreSQL version\" height=\"18\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/supabase/pg_graphql/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/pypi/l/markdown-subtemplate.svg\" alt=\"License\" height=\"18\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/supabase/pg_graphql/actions\"\u003e\u003cimg src=\"https://github.com/supabase/pg_graphql/actions/workflows/test.yml/badge.svg\" alt=\"tests\" height=\"18\"\u003e\u003c/a\u003e\n\n\u003c/p\u003e\n\n---\n\n**Documentation**: \u003ca href=\"https://supabase.github.io/pg_graphql\" target=\"_blank\"\u003ehttps://supabase.github.io/pg_graphql\u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/supabase/pg_graphql\" target=\"_blank\"\u003ehttps://github.com/supabase/pg_graphql\u003c/a\u003e\n\n---\n\n`pg_graphql` adds GraphQL support to your PostgreSQL database.\n\n- [x] __Performant__\n- [x] __Consistent__\n- [x] __Serverless__\n- [x] __Open Source__\n\n### Overview\n`pg_graphql` reflects a GraphQL schema from the existing SQL schema.\n\nThe 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.\n\n\n### TL;DR\n\nThe SQL schema\n\n```sql\ncreate table account(\n    id serial primary key,\n    email varchar(255) not null,\n    created_at timestamp not null,\n    updated_at timestamp not null\n);\n\ncreate table blog(\n    id serial primary key,\n    owner_id integer not null references account(id),\n    name varchar(255) not null,\n    description varchar(255),\n    created_at timestamp not null,\n    updated_at timestamp not null\n);\n\ncreate type blog_post_status as enum ('PENDING', 'RELEASED');\n\ncreate table blog_post(\n    id uuid not null default uuid_generate_v4() primary key,\n    blog_id integer not null references blog(id),\n    title varchar(255) not null,\n    body varchar(10000),\n    status blog_post_status not null,\n    created_at timestamp not null,\n    updated_at timestamp not null\n);\n\n-- This enables default inflection, which automatically renames\n-- snake_case to PascalCase for type names, and snake_case to camelCase for field names.\n-- See https://supabase.github.io/pg_graphql/configuration/#inflection for more details.\nCOMMENT ON SCHEMA public IS e'@graphql({\"inflect_names\": true})';\n```\nTranslates into a GraphQL schema displayed below.\n\nEach table receives an entrypoint in the top level `Query` type that is a pageable collection with relationships defined by its foreign keys. Tables similarly receive entrypoints in the `Mutation` schema that enable bulk operations for insert, update, and delete.\n\n![GraphiQL](./docs/assets/quickstart_graphiql.png)\n\n### Contributing\n\nPlease refer to the [contributing docs](./docs/contributing.md) for more information.\n","funding_links":["https://github.com/sponsors/supabase"],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase%2Fpg_graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupabase%2Fpg_graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase%2Fpg_graphql/lists"}