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
use async-graphql over juniper #63
Comments
Interesting! I actually wasn't aware of this |
I might PR this for a better DX with the app I'm currently working on as duplicating types is really annoying rn. Subscriptions could also be very helpful with the app. I'll start making a PR soon |
The current version of the plugin has subscriptions too, just FIY. It's just hidden behind the |
I know, I just prefer async-graphqls impl over juniper |
@Suyashtnt I think I like The only thing I particularly dislike is the way you access shared state (the app handle or window) struct Query;
#[Object]
impl Query {
async fn hello(&self, ctx: Context<'_>) {
let app = ctx.data::<AppHandle>().unwrap();
let window = ctx.data::<Window>().unwrap();
}
} Maybe you have any idea to do this in a better way somehow 🤔 Anyway, please test the PR branch if you have the chance and report if it works 👍🏻 |
async-graphql is another gql framework for rust and overall, it seems to be better than juniper according to their comparison. I'ved used both and async-graphql seems better to work with
The text was updated successfully, but these errors were encountered: