Installation

First, install pgrx by running cargo install --locked cargo-pgrx@version, where version should be compatible with the pgrx version used by pg_graphl

Then clone the repo and install using

1
2
3
git clone https://github.com/supabase/pg_graphql.git
cd pg_graphql
cargo pgrx install --release

To enable the extension in PostgreSQL we must execute a create extension statement. The extension creates its own schema/namespace named graphql to avoid naming conflicts.

1
create extension pg_graphql;