Skip to content

Commit

Permalink
Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Jan 15, 2025
1 parent cdbae0a commit fdc7005
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ Add the dependencies for defining GraphQL schema: `async-graphql`, `seaography`

We need to define an `RelatedEntity` enum for each of the SeaORM entity to help `seaography` figure out the parent-child relation between entities.

These can either be added by hand or by re-generating entities with `sea-orm-cli generate entity` using the `--seaography` flag.

```diff title=loco_starter/src/models/_entities/files.rs
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
Expand Down

0 comments on commit fdc7005

Please sign in to comment.