-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Slim query root #131
Slim query root #131
Conversation
* Add `RelationBuilder` trait * Use seaography flag on generation * Use DeriveRelatedEntity macro * Slim down parsing * Slim down code generation
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.
Amazing work!! The API looks really good!
Can we make register_entity!()
take an array of entity module paths?
It returns the seaography `Builder`
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 @karatakis, I added a commit here f23b1af
To support the following commit in SeaQL/sea-orm#1599
- A demo for how to construct the
async-graphql
query root for entity with/withoutRelatedEntity
c84294e
I think we should keep |
Okay, keep the name of commonly used marco short :P |
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 @karatakis, I just updated all three examples, please check :)
Looks very good |
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 @tyt2y3 @karatakis, please review
PR Info
query_root.rs
#130New Features
query_root.rs
Breaking Changes
seaography
when generating entities usingsea-orm-cli
Changes
query_root.rs
file is generated