graphql-rust / juniper

GraphQL server library for Rust
Other
5.72k stars 425 forks source link

Fix `operation_name` not being set in `juniper_hyper` (#1169) #1187

Closed tyranron closed 1 year ago

tyranron commented 1 year ago

Resolves #1169

Synopsis

See https://github.com/graphql-rust/juniper/issues/1169#issue-1726260032

Describe the bug The code block

https://github.com/graphql-rust/juniper/blob/a648dd727519991c2e3c762af16eac027b2acec2/juniper_hyper/src/lib.rs#L225-L229

seems to be missing a statement where operation_name would be set to Some(value).

To Reproduce Steps to reproduce the behavior: Just read through code. See the variable is defined a None and nowhere is being set.

Solution

Set the missing operation_name, as suggested.