🧠A GraphQL framework and code generator for SeaORM
[](https://crates.io/crates/seaography) [](https://docs.rs/seaography) [](https://github.com/SeaQL/seaography/actions/workflows/rust.yml)sh
cargo install seaography-cli
Setup the sakila sample database.
sh
cd examples/mysql
seaography-cli mysql://user:pw@localhost/sakila seaography-example-mysql .
cargo run
Go to http://localhost:8000/ and try out the following query:
graphql
{
film(pagination: { limit: 10, page: 0 }, orderBy: { title: ASC }) {
data {
title
description
releaseYear
filmActor {
actor {
firstName
lastName
}
}
}
}
}
Setup the sakila sample database.
sh
cd examples/postgres
seaography-cli postgres://user:pw@localhost/sakila seaography-example-postgres .
cargo run
sh
cd examples/sqlite
seaography-cli sqlite://chinook.db seaography-example-sqlite .
cargo run
Go to http://localhost:8000/ and try out the following query:
graphql
{
albums(pagination: { limit: 10, page: 0 }) {
data {
title
artists {
name
}
}
}
}
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Seaography is a community driven project. We welcome you to participate, contribute and together build for Rust's future.