We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 629f1b7 commit 8f0450eCopy full SHA for 8f0450e
actix-web/subscription/src/main.rs
@@ -35,12 +35,13 @@ async fn main() -> std::io::Result<()> {
35
.service(
36
web::resource("/")
37
.guard(guard::Post())
38
- .to(GraphQL::new(schema)),
+ .to(GraphQL::new(schema.clone())),
39
)
40
41
42
.guard(guard::Get())
43
.guard(guard::Header("upgrade", "websocket"))
44
+ .app_data(web::Data::new(schema))
45
.to(index_ws),
46
47
.service(web::resource("/").guard(guard::Get()).to(index_graphiql))
0 commit comments