5 releases (breaking)
Uses new Rust 2024
| 0.5.0 | Jun 24, 2025 |
|---|---|
| 0.4.0 | May 18, 2023 |
| 0.3.0 | May 26, 2021 |
| 0.2.0 | May 21, 2021 |
| 0.1.0 | May 17, 2021 |
#961 in Asynchronous
262 downloads per month
25KB
159 lines
async-graphql-relay
Relay support for async-graphql
This crate aims to bring the Relay server specification to async-graphql. The Relay specification requires three main things:
- Globally unique IDs
- This crate achieves this by appending the database UUID with an integer which represents the objects type
- Refetching using the
nodequery- This crate calls a
get()method on the type specified in the globally unique ID to refetch the object.
- This crate calls a
- Connections for Pagination
- This feature already exists in async-graphql. Documentation for this feature is here.
Install
Add async-graphql-relay to your dependencies:
[dependencies]
# ...
async-graphql-relay= "0.5.0"
Usage
Check out this example application.
Dependencies
~15–25MB
~544K SLoC