grafbase-sdk

Crates.iografbase-sdk
lib.rsgrafbase-sdk
version0.22.3
created_at2025-01-28 11:38:05.629859+00
updated_at2025-08-29 11:26:01.695312+00
descriptionAn SDK to implement extensions for the Grafbase Gateway
homepagehttps://grafbase.com
repositoryhttps://github.com/grafbase/grafbase
max_upload_size
id1533428
size868,244
Benjamin Rabier (Finistere)

documentation

README

Grafbase SDK for Gateway Extensions

docs.rs

This crate provides building blocks for creating Grafbase Gateway extensions.

There exist four kinds of extensions today:

  • [AuthenticationExtension]: Authenticates clients before any GraphQL processing, generating a token with custom data for further extensions.
  • [AuthorizationExtension]: Control access to certain fields, objects, interfaces, scalars or enums.
  • [ResolverExtension]: Called by the gateway to resolve data for a field from a GraphQL subgraph.
  • [HooksExtension]: Called by the gateway to perform actions before receiving a request, or right before sending a response.
  • [ContractsExtension]: Called by the gateway to identify which elements should be part of a schema contract given subgraph directives and the contract key.

Each extension has its dedicated documentation and tutorial you can follow through.

Commit count: 8047

cargo fmt