File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ graphql_input_object!(
23
23
#[ derive( Debug ) ]
24
24
struct Point {
25
25
x: i64 ,
26
- y: i64 ,
27
26
}
28
27
) ;
29
28
@@ -74,7 +73,7 @@ graphql_object!(Root: () |&self| {
74
73
75
74
field args_with_complex_default(
76
75
arg1 = ( "test" . to_owned( ) ) : String as "A string default argument" ,
77
- arg2 = ( Point { x: 1 , y : 2 } ) : Point as "An input object default argument" ,
76
+ arg2 = ( Point { x: 1 } ) : Point as "An input object default argument" ,
78
77
) -> i64 { 0 }
79
78
} ) ;
80
79
@@ -494,7 +493,7 @@ fn introspect_field_args_with_complex_default() {
494
493
assert ! ( args. contains( & Value :: object( vec![
495
494
( "name" , Value :: string( "arg2" ) ) ,
496
495
( "description" , Value :: string( "An input object default argument" ) ) ,
497
- ( "defaultValue" , Value :: string( r#"{y: 2, x: 1}"# ) ) ,
496
+ ( "defaultValue" , Value :: string( r#"{x: 1}"# ) ) ,
498
497
( "type" , Value :: object( vec![
499
498
( "name" , Value :: string( "Point" ) ) ,
500
499
( "ofType" , Value :: null( ) ) ,
You can’t perform that action at this time.
0 commit comments