async-graphql-relay

Crates.ioasync-graphql-relay
lib.rsasync-graphql-relay
version0.5.0
created_at2021-05-17 17:01:16.667041+00
updated_at2025-06-24 02:52:24.834539+00
descriptionRelay support for async-graphql
homepagehttps://github.com/oscartbeaumont/async-graphql-relay
repositoryhttps://github.com/oscartbeaumont/async-graphql-relay
max_upload_size
id398662
size90,560
Oscar Beaumont (oscartbeaumont)

documentation

https://docs.rs/async-graphql-relay

README

async-graphql-relay

Relay support for async-graphql

Crates.io version Download docs.rs docs

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 node query
    • This crate calls a get() method on the type specified in the globally unique ID to refetch the object.
  • Connections for Pagination

Install

Add async-graphql-relay to your dependencies:

[dependencies]
# ...
async-graphql-relay= "0.5.0"

Usage

Check out this example application.

Commit count: 26

cargo fmt