Skip to content

Async graphql for Leptos? #198

Answered by allurefx
Dindaleon asked this question in Q&A
Dec 30, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

As it happens, I'm just starting my project to re-do an app with all rust (front/back ends) and switching to GraphQL in place of GRPC in the process. I started with Leptos a couple of days back for the frontend and have just (as of today) succeeded in setting the basic plumbing for the GraphQL connection.

Basically, I'm using async-graphql and async-graphql-axum (I'm using Axum, but there are extensions for other frameworks on the async-graphql GitHub page). On the client side, I added graphql_client and graphql_query_derive (for helper code). The GraphQL part itself is straightforward, but the biggest problem I've had so far was with using Leptos to make the async calls.

  1. There is a "cre…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@gbj
Comment options

gbj Dec 31, 2022
Maintainer

@allurefx
Comment options

@gbj
Comment options

gbj Jan 3, 2023
Maintainer

Answer selected by Dindaleon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants