postrust-graphql
GraphQL API and realtime subscriptions generated from a PostgreSQL schema.
- Builds a GraphQL schema from database tables, views and relationships.
- Queries, mutations, filtering and ordering that mirror the REST surface.
- Subscriptions backed by PostgreSQL
LISTEN/NOTIFY.
Install
Part of Postrust
Postrust turns a PostgreSQL database into a REST and GraphQL API. It is published as a set of crates so you can depend on only the part you need:
| Crate | Role | Docs |
|---|---|---|
postrust-server |
HTTP server | docs.rs |
postrust-core |
Engine | docs.rs |
postrust-sql |
SQL builder | docs.rs |
postrust-auth |
Authentication | docs.rs |
postrust-response |
Response formatting | docs.rs |
postrust-graphql (this crate) |
GraphQL | docs.rs |
postrust-lambda |
AWS Lambda | docs.rs |
postrust-worker |
Cloudflare Workers | docs.rs |
postrust-proxy |
Reverse proxy | docs.rs |
Links
- Website: https://postrust.org/
- GraphQL & Apollo Federation Docs: https://postrust.org/docs/graphql/
- Realtime Subscriptions Docs: https://postrust.org/docs/realtime/
- Hasura Conformance Report: https://postrust.org/docs/conformance/hasura/
- Guide — How GraphQL APIs Are Generated from PostgreSQL: https://postrust.org/guides/graphql-from-postgresql-schema/
- Guide — Apollo Federation Open-Source Subgraphs: https://postrust.org/guides/apollo-federation-open-source-subgraphs/
- Guide — PostgreSQL to GraphQL Tools Compared: https://postrust.org/guides/postgresql-graphql-tools-compared/
- Documentation: https://postrust.org/docs/
- Repository: https://github.com/postrust/postrust
- API docs for this crate: https://docs.rs/postrust-graphql
License
MIT -- see LICENSE.