File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
src/test/java/graphql/servlet Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 33* .iml
44* .ipr
55* .iws
6+ .idea /
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ repositories {
3030}
3131
3232apply plugin : ' java'
33+ compileJava {
34+ sourceCompatibility = ' 1.8'
35+ targetCompatibility = ' 1.8'
36+ }
37+
3338apply plugin : ' osgi'
3439apply plugin : ' license'
3540apply plugin : ' java-library-distribution'
@@ -117,7 +122,7 @@ dependencies {
117122 compile ' commons-fileupload:commons-fileupload:1.3.1'
118123
119124 // GraphQL
120- compile ' com.graphql-java:graphql-java:2.2 .0'
125+ compile ' com.graphql-java:graphql-java:2.3 .0'
121126 compile ' com.graphql-java:graphql-java-annotations:0.13.1'
122127
123128 // JSON
@@ -179,6 +184,11 @@ modifyPom {
179184 name ' Yurii Rashkovskii'
180185 email ' yrashk@gmail.com'
181186 }
187+ developer {
188+ id ' apottere'
189+ name ' Andrew Potter'
190+ email ' apottere@gmail.com'
191+ }
182192 }
183193 }
184194 }
Original file line number Diff line number Diff line change @@ -41,11 +41,19 @@ public static class Data {
4141 private String field2 ;
4242 }
4343
44+ @ Value
45+ public static class DataInput {
46+ @ GraphQLField
47+ private String field1 ;
48+ @ GraphQLField
49+ private String field2 ;
50+ }
51+
4452 @ GraphQLName ("data" )
4553 public static class DataQuery {
4654 @ GraphQLField
47- public Data echo (Data data ) {
48- return data ;
55+ public Data echo (DataInput data ) {
56+ return new Data ( data . getField1 (), data . getField2 ()) ;
4957 }
5058 }
5159
You can’t perform that action at this time.
0 commit comments