-
Notifications
You must be signed in to change notification settings - Fork 428
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
Example to integrate with Axum #1184
Comments
I think this is covered by #986 |
- create `juniper_axum` crate in Cargo workspace - implement `graphql` default `axum` handler for processing GraphQL requests - implement `extract::JuniperRequest` and `response::JuniperResponse` for custom processing GraphQL requests - implement `subscriptions::graphql_transport_ws()` default `axum` handler for processing the new `graphql-transport-ws` GraphQL over WebSocket Protocol - implement `subscriptions::graphql_ws()` default `axum` handler for processing the legacy `graphql-ws` GraphQL over WebSocket Protocol - implement `subscriptions::serve_graphql_transport_ws()` function for custom processing the new `graphql-transport-ws` GraphQL over WebSocket Protocol - implement `subscriptions::serve_graphql_ws()` function for custom processing the legacy `graphql-ws` GraphQL over WebSocket Protocol - provide `examples/simple.rs` of default `juniper_axum` integration - provide `examples/custom.rs` of custom `juniper_axum` integration Additionally: - fix `junper_actix` crate MSRV to 1.73 - add `test_post_with_variables()` case to integration `juniper::http::tests` Co-authored-by: ilslv <[email protected]> Co-authored-by: Christian Legnitto <[email protected]> Co-authored-by: Kai Ren <[email protected]>
The examples may be found in |
When will |
The examples are pretty useless if you can't install the crate. |
It's being worked on: |
Does anyone know if there is a way to temporarily depend on the crate in the git repo until it is published? I read https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-git-repositories, but suspect that because the top level of the https://github.com/graphql-rust/juniper has a Is there a facility to specify the path inside the git repo, and use that when resolving the dependencies? |
Something like this should work OK: juniper = { git = "https://github.com/graphql-rust/juniper", branch = "master" }
juniper_axum = { git = "https://github.com/graphql-rust/juniper", branch = "master" } |
Hi everyone i'm newbie in Rust (from Golang). Juniper(Graphql) look very cool.
Can you show me about example to integrate with Axum?
The text was updated successfully, but these errors were encountered: