DEV Community

Discussion on: Building Powerful GraphQL Servers with Rust

Collapse
 
fattenap profile image
Frank Panetta

Great article! I have a repo that also uses these technologies together. Although it uses Diesel connection pool (R2D2) to connect to postgreSQL and passes the connection through to the Juniper GraphQL Context, to be accessed from the QueryRoot and MutationRoot.

i.e: #[juniper::object(Context = Context,)]

You probably already know how to hook all that up, but it took me ages to figure out. Just thought you might be interested. github.com/fattenap/actix-web-juni...

Anyway, thanks for the article, it really helped.