-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plans to Revamp SeaORM Tutorial #8
Comments
I'd be happy to help work out the new tutorials as much as time allows 🥳 One general question:
Two specific questions:
From my part, I've not worked with gRPC or GraphQL yet. Could use support there. |
Hey @nahuakang,
Let me know your thoughts :) |
Hey @nahuakang, @shpun817 and I will take on this task :) |
Proposed outline of the revamped tutorial: SeaORM TutorialsIntroduction Chapter 1 - Building a Backend with SeaORM
Chapter 2 - Integration with Rocket
Chapter 3 - Integration with GraphQL
|
* Revamped outline * Rewrite introduction * Remove old tutorials * Draft ch01-00 * Draft ch01-01 * Edit SQLite (in file) example URL * Add bakery-backend source code * Add `sea-orm-migration` dependency * Create migrator module * Create migrations * Use Migrator to define the database schema * Draft ch01-02 * Draft ch01-03 * Draft ch01-04 * Insert and update * Find (single entity) * Delete * Draft ch01-06 * Draft ch01-07 * Remove PostgreSQL prompt symbol guide * Add reminder of executing sea-orm-cli at the project root * Specify file path of Cargo.toml * intro: "the most" -> "a" * Remove legacy example source files * Draft ch01-08 * Add SeaQuery usage source code * Add Rocket integration example source code * Update SUMMARY * Section rename: "Fetch from Database" -> "Connect to Database" * Draft ch02-00 * Remove # in SUMMARY.md * Add `/reset` endpoint in Rocket integration example source code * Draft ch02-01 * Add templates to provide a minimal frontend * Remove non-existent handler in ch02-01 * Draft ch02-02 * Add section for simple frontend using templates in plan * Draft ch02-03 * Add mounting new endpoint handler in ch02-02 * Draft ch02-04 * Draft ch02-05 * Merge Billy's changes * Update ch01-00-simple-crud-getting-started.md (#10) Missing features "attributes" for async-std. Thank you! * Remove old tutorial section ch01-00-simple-crud-getting-started.md * Update GitHub workflows for building the examples * Update README.md * Prepare for early release (postponing the release of chapter 3) Co-authored-by: Nicolas Carranza <[email protected]>
We still have chapter 3 and more |
More tutorials are welcomed! e.g. advanced topics in SeaORM, step-by-step integration example for SeaORM with frameworks such as gRPC, etc. |
The new tutorial looks amazing 🥇 (sorry I didn't help out at all). I'll read it as soon as I can and give feedback from the view of a new user :) |
Hey @nahuakang, no worries! Please let us know your thoughts on the new SeaORM tutorials :) |
I left some edits on Chapter 1: #18. Overall this chapter gave a very smooth introduction to how to link up https://www.sea-ql.org/sea-orm-tutorial/ch01-08-sql-with-sea-query.html is perhaps the most confusing to me. Some lines, such as Edit: I think |
I think using SeaQuery to construct query statement while executing it on SeaORM gives you flexibility over the query building while ease the difficulty of managing the connection and mapping query result into struct. |
Hello! I think you should pay attention to how Relational Query works. https://www.sea-ql.org/sea-orm-tutorial/ch03-02-query.html // src/schema.rs
// src/entities/bakery.rs
I get: Obviously, it is necessary to describe a different approach, since we want to move the GraphQl logic to another crate. When we add a ComplexObject directly to an Entity, we lose context. |
Interesting. If you look at the full source code (https://www.sea-ql.org/sea-orm-tutorial/ch03-00-integration-with-graphql.html) The |
We would like to rewrite SeaORM tutorial and align with SeaORM 0.8.0 and beyond.
We're going to have two types of tutorial:
To make the tutorial more realistic and interesting, we could have theme across our tutorial.
The Basics of SeaORM
Table of Content
sea-orm-cli
Integrating with SeaORM
This would be split into multiple tutorials that depend on prior knowledge of "The Basics of SeaORM".
Frameworks to be included
Your comments, suggestions and feedbacks are appreciated!
Please leave a comment below and let us know your thoughts :)
CC @tyt2y3
The text was updated successfully, but these errors were encountered: