parent
dadd318b85
commit
f172be5656
2 changed files with 8 additions and 1 deletions
|
@ -14,7 +14,13 @@ All user visible changes to `juniper_actix` crate will be documented in this fil
|
||||||
- Switched to 0.16 version of [`juniper` crate].
|
- Switched to 0.16 version of [`juniper` crate].
|
||||||
- Switched to 0.4 version of [`juniper_graphql_ws` crate].
|
- Switched to 0.4 version of [`juniper_graphql_ws` crate].
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- `operationName` not being set. ([#1187], [#1169])
|
||||||
|
|
||||||
[#1034]: /../../pull/1034
|
[#1034]: /../../pull/1034
|
||||||
|
[#1169]: /../../issues/1169
|
||||||
|
[#1187]: /../../pull/1187
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,7 @@ where
|
||||||
S: ScalarValue,
|
S: ScalarValue,
|
||||||
{
|
{
|
||||||
let mut query = None;
|
let mut query = None;
|
||||||
let operation_name = None;
|
let mut operation_name = None;
|
||||||
let mut variables = None;
|
let mut variables = None;
|
||||||
for (key, value) in form_urlencoded::parse(input.as_bytes()).into_owned() {
|
for (key, value) in form_urlencoded::parse(input.as_bytes()).into_owned() {
|
||||||
match key.as_ref() {
|
match key.as_ref() {
|
||||||
|
@ -226,6 +226,7 @@ where
|
||||||
if operation_name.is_some() {
|
if operation_name.is_some() {
|
||||||
return Err(invalid_err("operationName"));
|
return Err(invalid_err("operationName"));
|
||||||
}
|
}
|
||||||
|
operation_name = Some(value)
|
||||||
}
|
}
|
||||||
"variables" => {
|
"variables" => {
|
||||||
if variables.is_some() {
|
if variables.is_some() {
|
||||||
|
|
Loading…
Reference in a new issue