Skip to main content

Crate postrust_graphql

Crate postrust_graphql 

Source
Expand description

GraphQL support for Postrust.

This crate provides GraphQL API generation from PostgreSQL schema, including queries, mutations, and subscriptions.

Re-exports§

pub use error::GraphQLError;
pub use types::GraphQLType;

Modules§

context
GraphQL context containing auth, database pool, and schema cache.
error
GraphQL-specific error types.
handler
Axum handler for the /graphql endpoint.
hasura
The response envelope Hasura clients expect.
input
GraphQL input types for filters, ordering, and mutations.
names
Names the schema does not carry.
resolver
GraphQL resolvers for queries, mutations, and field resolution.
role
What one role can see.
scalar
Custom GraphQL scalar definitions.
schema
GraphQL schema generation from PostgreSQL schema cache.
subscription
GraphQL subscriptions using PostgreSQL LISTEN/NOTIFY.
types
PostgreSQL to GraphQL type mapping.