Integrations

GraphQL

pg_graphql and the in-dashboard GraphiQL IDE.

This page is available in Polish only for now. The commands, code and API calls below are the same in every language — an English translation is on its way. Open the Polish page

Po instalacji Integracje → GraphiQL (rozszerzenie pg_graphql) projekt udostępnia endpoint https://<ref>.host.ulewicz.space/graphql/v1. Tabele są dostępne jako kolekcje <tabela>Collection z paginacją relay, filtrowaniem i relacjami; mutacje insertInto…, update…, deleteFrom….

Zakładka GraphiQL to IDE w przeglądarce: edytor zapytań i zmiennych, wybór klucza (anon lub service_role) oraz eksplorator schematu — kliknięcie kolekcji wstawia gotowe zapytanie. Uprawnienia i RLS działają tak samo jak w REST.

curl -X POST https://abcdefghijklmnopqrst.host.ulewicz.space/graphql/v1 \
  -H "apikey: $ANON_KEY" -H "Content-Type: application/json" \
  -d '{"query":"{ todosCollection(first: 5) { edges { node { id title } } } }"}'