Part 2 - Persisting Data To Database
This is article is part of a series. They are:
Part 1 - Simple GraphQL Server with Juniper And Actix Part 2 - Persisting Data To Database In the previous blog post, we showed how easy it is to create a GraphQL server in Rust. In this post, we will hook it up to a Postgres database. To do this we will use the tokio-postgres package. While it is possible to use an ORM in Rust (the most popular choice being diesel), that topic is very dense on its own, and even in high level frameworks like Node.