-
-
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
Add Chapter 3 - GraphQL Integration Example #14
Conversation
Missing features "attributes" for async-std. Thank you!
…to SeaQL-master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should include the link to the full source code of the example at the start of each chapter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add our example for chapter 3 to READMD.md
Lines 9 to 10 in e53392f
1. [**Bakery Backend**](https://www.sea-ql.org/sea-orm-tutorial/ch01-00-build-backend-getting-started.html) - This chapter covers the basics of using SeaORM to interact with the database (a MySQL database is used for illustration). On top of this backend you can build any interface you need. 2. [**Rocket Integration**](https://www.sea-ql.org/sea-orm-tutorial/ch02-00-integration-with-rocket.html) - This chapter explains how to integrate the SeaORM backend into the Rocket framework to create a web application that provides a web API or even a simple frontend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can add one extra endpoint for debugging / experimental purpose: /graphql
served with GET request
The UI is user friendly and easy to play around with GraphQL. Most importantly it provide the schema, query and mutation info.
We add a page to introduce this optional "feature". With a few screen capture (of your own) and showing the schema info panel, query and mutation operations.
Implementation: shpun817/sea-orm-tutorial@master...billy1624:pr/14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last but not least, can we stream SeaORM result via GraphQL subscription?
References:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @shpun817, all in all it looks great!! :D
Add endpoint for GraphQL playground
@billy1624 Thanks for the comments! GraphQL Subscription currently cannot be unsupported by SeaORM, will open an issue for it. (Issue #868) Otherwise, Chapter 3 is again ready for review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!! @shpun817 Appreciated :D
@billy1624 @tyt2y3 Ready for review.