A sample of GraphQL in Rust.
- Get Rust.
- Install
sqlx-cli
cargo install sqlx-cli --no-default-features --features postgres
git clone https://github.com/connec/rust-graphql-sample
make run
โ this will start a PostgreSQL container, prepare a sample database, and start the server.
GraphiQL is served from http://localhost:3000/, and the GraphQL API itself from http://localhost:3000/query.