-
-
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
Generic type filter 1 #97
Conversation
* separate StringFilter * implement FilterTrait for enumerations Filters * implement FilterTrait for FilterType struct
Hey @karatakis, check this. To be honest, this is harder than I originally thought loll I introduce one more trait, |
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!!! Thanks for solving this puzzle for me :)
Just being curious, where the difficulty lies in? Rust? or mechanism of Seaography itself? |
The difficulty comes from Rust. So in this case we need to take any input object accepted by async_graphql then construct a filter object for that input object. How can we tell Rust compiler the corresponding type of the filter object? Associated type! That's something I miss out at the planning phase. |
🎉 Released In 0.3.0 🎉Thank you everyone for the contribution! |
PR Info
Closes A generic filter for any types and database enums #87
Experimenting based on Add FilterTrait #95