sea-orm icon indicating copy to clipboard operation
sea-orm copied to clipboard

Examples & Tutorials wanted

Open tyt2y3 opened this issue 3 years ago • 8 comments

SeaORM aims to play well with other crates in the async ecosystem.

We now have an array of integration examples. But if you used SeaORM with a framework / library not already on our list, we'd appreciate you to submit an example project. Also, upgrading these examples to the latest dependencies is a regular maintenance work, and we'd also appreciate some help from time-to-time.

If you have made articles, tutorials, podcasts or videos reated to SeaORM and want to share it with the community, feel free to submit a PR and add it to the list.

tyt2y3 avatar Oct 23 '21 15:10 tyt2y3

May be consider poem crates

baoyachi avatar Oct 23 '21 16:10 baoyachi

I write an axum version of actix_example at PR #297 .

YoshieraHuang avatar Nov 06 '21 09:11 YoshieraHuang

Hi @YoshieraHuang, thank you so much for the huge PR!!

billy1624 avatar Nov 06 '21 13:11 billy1624

Would you be interested in an axum+async-graphql example?

aaronleopold avatar Mar 03 '22 22:03 aaronleopold

Hey @aaronleopold, definitely interested!

billy1624 avatar Mar 07 '22 05:03 billy1624

@billy1624 awesome! I added my personal template that I use for my projects over the weekend to a fork, feel free to take a look. I'll be able to make a PR after work today.

aaronleopold avatar Mar 07 '22 16:03 aaronleopold

Thanks!! @aaronleopold

billy1624 avatar Mar 07 '22 16:03 billy1624

hi im new of rust and sea orm,would can be detail data loader tutorials,the example code seems lost some context

eg:

let cakes: Vec<cake::Model> = Cake::find().all(db).await?;
let fruits: Vec<Vec<fruit::Model>> = cakes.load_many(Fruit, db).await?;
let fillings: Vec<Vec<filling::Model>> = cakes.load_many_to_many(Filling, CakeFilling, db).await?; 

where is Filling and CakeFilling defined or import is that a table for connect this to tables ?

data loader was more recommend by use join,if there as a well document it will help a lot

joebnb avatar Feb 01 '24 12:02 joebnb