Skip to main content
Version: 0.4.x 🚧

Getting started

Installing SeaORM and Seaography CLI

cargo install sea-orm-cli@^0.12
cargo install seaography-cli@1

CLI parameters

🧭 A GraphQL framework and code generator for SeaORM


<DESTINATION> Project destination folder
<ENTITIES> SeaORM entities folder
<DATABASE_URL> Database URL to write in .env
<CRATE_NAME> Crate name for generated project

-f, --framework <FRAMEWORK>
Which web framework to use [default: poem] [possible values: actix, poem]
--depth-limit <DEPTH_LIMIT>
GraphQL depth limit
--complexity-limit <COMPLEXITY_LIMIT>
GraphQL complexity limit
-h, --help
Print help
-V, --version
Print version
  • DATABASE_URL examples: mysql://user:pass@, postgres://user:pass@, sqlite://my_db.db


In order to understand how the generated code works its recommended to study the following resources:

  1. async-graphql

    Is a server side GraphQL library for Rust.

  2. sea-orm

    SeaORM is a relational ORM to help you build web services in Rust.

  3. The web API of the generated project

    poem actix

  4. tokio*

    A runtime for writing reliable, asynchronous, and slim applications with the Rust programming language.