File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed
lib/graphql_java_gen/templates
support/src/test/java/com/shopify/graphql/support Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ public class <%= schema_name %> {
295
295
296
296
public <%= type . name %> set<%= field . classify_name %> (<%= java_annotations ( field , in_argument : true ) %> <%= java_input_type ( field . type ) %> <%= escape_reserved_word ( field . camelize_name ) %> ) {
297
297
this.<%= escape_reserved_word ( field . camelize_name ) %> = <%= escape_reserved_word ( field . camelize_name ) %> ;
298
- this.<%= escape_reserved_word ( field . name ) %> Seen = true;
298
+ this.<%= field . camelize_name %> Seen = true;
299
299
return this;
300
300
}
301
301
<% end %>
@@ -310,7 +310,7 @@ public class <%= schema_name %> {
310
310
<%= generate_build_input_code ( escape_reserved_word ( field . camelize_name ) , field . type ) %>
311
311
<% end %>
312
312
<% type . optional_input_fields . each do |field | %>
313
- if (this.<%= escape_reserved_word ( field . name ) %> Seen) {
313
+ if (this.<%= field . camelize_name %> Seen) {
314
314
_queryBuilder.append(separator);
315
315
separator = ",";
316
316
_queryBuilder.append("<%= field . name %> :");
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ module Schema
91
91
argument :value , !types . Int
92
92
argument :ttl , TimeType
93
93
argument :negate , types . Boolean , default_value : false
94
+ argument :api_client , types . String
94
95
end
95
96
96
97
MutationType = GraphQL ::ObjectType . define do
Original file line number Diff line number Diff line change @@ -1082,6 +1082,9 @@ public static class SetIntegerInput implements Serializable {
1082
1082
private Boolean negate ;
1083
1083
private boolean negateSeen = false ;
1084
1084
1085
+ private String apiClient ;
1086
+ private boolean apiClientSeen = false ;
1087
+
1085
1088
public SetIntegerInput (String key , int value ) {
1086
1089
this .key = key ;
1087
1090
@@ -1128,6 +1131,17 @@ public SetIntegerInput setNegate(@Nullable Boolean negate) {
1128
1131
return this ;
1129
1132
}
1130
1133
1134
+ @ Nullable
1135
+ public String getApiClient () {
1136
+ return apiClient ;
1137
+ }
1138
+
1139
+ public SetIntegerInput setApiClient (@ Nullable String apiClient ) {
1140
+ this .apiClient = apiClient ;
1141
+ this .apiClientSeen = true ;
1142
+ return this ;
1143
+ }
1144
+
1131
1145
public void appendTo (StringBuilder _queryBuilder ) {
1132
1146
String separator = "" ;
1133
1147
_queryBuilder .append ('{' );
@@ -1164,6 +1178,17 @@ public void appendTo(StringBuilder _queryBuilder) {
1164
1178
}
1165
1179
}
1166
1180
1181
+ if (this .apiClientSeen ) {
1182
+ _queryBuilder .append (separator );
1183
+ separator = "," ;
1184
+ _queryBuilder .append ("api_client:" );
1185
+ if (apiClient != null ) {
1186
+ Query .appendQuotedString (_queryBuilder , apiClient .toString ());
1187
+ } else {
1188
+ _queryBuilder .append ("null" );
1189
+ }
1190
+ }
1191
+
1167
1192
_queryBuilder .append ('}' );
1168
1193
}
1169
1194
}
You can’t perform that action at this time.
0 commit comments