Fix bug in input object macro
This commit is contained in:
parent
9d520d77f9
commit
0a3bbf8f21
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ macro_rules! graphql_input_object {
|
|||
println!("Found variable for {:?}: {:?} in {:?}", n, v, $var);
|
||||
|
||||
match v {
|
||||
$( Some(&&InputValue::Null) | None if true => $default, )*
|
||||
$( Some(&&$crate::InputValue::Null) | None if true => $default, )*
|
||||
Some(v) => $crate::FromInputValue::from(v).unwrap(),
|
||||
_ => $crate::FromInputValue::from(&$crate::InputValue::null()).unwrap()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue