@@ -22,59 +22,59 @@ Syntax to validate:
22
22
graphql_input_object ! (
23
23
#[ derive( Debug ) ]
24
24
struct Point {
25
- x: i64 ,
25
+ x: i32 ,
26
26
}
27
27
) ;
28
28
29
29
graphql_object ! ( Root : ( ) |& self | {
30
- field simple( ) -> i64 { 0 }
31
- field exec_arg( & executor) -> i64 { 0 }
32
- field exec_arg_and_more( & executor, arg: i64 ) -> i64 { 0 }
30
+ field simple( ) -> i32 { 0 }
31
+ field exec_arg( & executor) -> i32 { 0 }
32
+ field exec_arg_and_more( & executor, arg: i32 ) -> i32 { 0 }
33
33
34
- field single_arg( arg: i64 ) -> i64 { 0 }
34
+ field single_arg( arg: i32 ) -> i32 { 0 }
35
35
field multi_args(
36
- arg1: i64 ,
37
- arg2: i64
38
- ) -> i64 { 0 }
36
+ arg1: i32 ,
37
+ arg2: i32
38
+ ) -> i32 { 0 }
39
39
field multi_args_trailing_comma(
40
- arg1: i64 ,
41
- arg2: i64 ,
42
- ) -> i64 { 0 }
40
+ arg1: i32 ,
41
+ arg2: i32 ,
42
+ ) -> i32 { 0 }
43
43
44
- field single_arg_descr( arg: i64 as "The arg" ) -> i64 { 0 }
44
+ field single_arg_descr( arg: i32 as "The arg" ) -> i32 { 0 }
45
45
field multi_args_descr(
46
- arg1: i64 as "The first arg" ,
47
- arg2: i64 as "The second arg"
48
- ) -> i64 { 0 }
46
+ arg1: i32 as "The first arg" ,
47
+ arg2: i32 as "The second arg"
48
+ ) -> i32 { 0 }
49
49
field multi_args_descr_trailing_comma(
50
- arg1: i64 as "The first arg" ,
51
- arg2: i64 as "The second arg" ,
52
- ) -> i64 { 0 }
50
+ arg1: i32 as "The first arg" ,
51
+ arg2: i32 as "The second arg" ,
52
+ ) -> i32 { 0 }
53
53
54
- field arg_with_default( arg = 123 : i64 ) -> i64 { 0 }
54
+ field arg_with_default( arg = 123 : i32 ) -> i32 { 0 }
55
55
field multi_args_with_default(
56
- arg1 = 123 : i64 ,
57
- arg2 = 456 : i64
58
- ) -> i64 { 0 }
56
+ arg1 = 123 : i32 ,
57
+ arg2 = 456 : i32
58
+ ) -> i32 { 0 }
59
59
field multi_args_with_default_trailing_comma(
60
- arg1 = 123 : i64 ,
61
- arg2 = 456 : i64 ,
62
- ) -> i64 { 0 }
60
+ arg1 = 123 : i32 ,
61
+ arg2 = 456 : i32 ,
62
+ ) -> i32 { 0 }
63
63
64
- field arg_with_default_descr( arg = 123 : i64 as "The arg" ) -> i64 { 0 }
64
+ field arg_with_default_descr( arg = 123 : i32 as "The arg" ) -> i32 { 0 }
65
65
field multi_args_with_default_descr(
66
- arg1 = 123 : i64 as "The first arg" ,
67
- arg2 = 456 : i64 as "The second arg"
68
- ) -> i64 { 0 }
66
+ arg1 = 123 : i32 as "The first arg" ,
67
+ arg2 = 456 : i32 as "The second arg"
68
+ ) -> i32 { 0 }
69
69
field multi_args_with_default_trailing_comma_descr(
70
- arg1 = 123 : i64 as "The first arg" ,
71
- arg2 = 456 : i64 as "The second arg" ,
72
- ) -> i64 { 0 }
70
+ arg1 = 123 : i32 as "The first arg" ,
71
+ arg2 = 456 : i32 as "The second arg" ,
72
+ ) -> i32 { 0 }
73
73
74
74
field args_with_complex_default(
75
75
arg1 = ( "test" . to_owned( ) ) : String as "A string default argument" ,
76
76
arg2 = ( Point { x: 1 } ) : Point as "An input object default argument" ,
77
- ) -> i64 { 0 }
77
+ ) -> i32 { 0 }
78
78
} ) ;
79
79
80
80
fn run_args_info_query < F > ( field_name : & str , f : F )
0 commit comments