37 releases (13 breaking)

Uses new Rust 2024

new 0.14.0 Apr 16, 2025
0.13.0 Mar 27, 2025
0.12.0 Mar 25, 2025

#160 in HTTP server

Download history 182/week @ 2025-01-24 326/week @ 2025-01-31 1177/week @ 2025-02-07 381/week @ 2025-02-14 1080/week @ 2025-02-21 869/week @ 2025-02-28 573/week @ 2025-03-07 473/week @ 2025-03-14 665/week @ 2025-03-21 433/week @ 2025-03-28 578/week @ 2025-04-04 603/week @ 2025-04-11

2,393 downloads per month

MPL-2.0 license

355KB
7K SLoC

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.
  • [FieldResolverExtension]: Called by the gateway to resolve data for a field, replacing or augmenting a GraphQL subgraph.
  • [SelectionSetResolverExtension]: Called by the gateway to resolve data downstream from a field, replacing or augmenting a GraphQL subgraph. These extensions have access to the selection set on the field and to the whole GraphQL schema.

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

Dependencies

~7–26MB
~419K SLoC