@@ -125,6 +125,26 @@ today::FourthNestedInput ModifiedArgument<today::FourthNestedInput>::convert(con
125125 };
126126}
127127
128+ template <>
129+ today::IncludeNullableSelfInput ModifiedArgument<today::IncludeNullableSelfInput>::convert(const response::Value& value)
130+ {
131+ auto valueSelf = service::ModifiedArgument<today::IncludeNullableSelfInput>::require<service::TypeModifier::Nullable>(" self" , value);
132+
133+ return {
134+ std::move (valueSelf)
135+ };
136+ }
137+
138+ template <>
139+ today::IncludeNonNullableListSelfInput ModifiedArgument<today::IncludeNonNullableListSelfInput>::convert(const response::Value& value)
140+ {
141+ auto valueSelves = service::ModifiedArgument<today::IncludeNonNullableListSelfInput>::require<service::TypeModifier::List>(" selves" , value);
142+
143+ return {
144+ std::move (valueSelves)
145+ };
146+ }
147+
128148template <>
129149today::SecondNestedInput ModifiedArgument<today::SecondNestedInput>::convert(const response::Value& value)
130150{
@@ -137,6 +157,18 @@ today::SecondNestedInput ModifiedArgument<today::SecondNestedInput>::convert(con
137157 };
138158}
139159
160+ template <>
161+ today::ForwardDeclaredInput ModifiedArgument<today::ForwardDeclaredInput>::convert(const response::Value& value)
162+ {
163+ auto valueNullableSelf = service::ModifiedArgument<today::IncludeNullableSelfInput>::require<service::TypeModifier::Nullable>(" nullableSelf" , value);
164+ auto valueListSelves = service::ModifiedArgument<today::IncludeNonNullableListSelfInput>::require (" listSelves" , value);
165+
166+ return {
167+ std::move (valueNullableSelf),
168+ std::move (valueListSelves)
169+ };
170+ }
171+
140172template <>
141173today::FirstNestedInput ModifiedArgument<today::FirstNestedInput>::convert(const response::Value& value)
142174{
@@ -179,8 +211,14 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
179211 schema->AddType (R"gql( ThirdNestedInput)gql" sv, typeThirdNestedInput);
180212 auto typeFourthNestedInput = schema::InputObjectType::Make (R"gql( FourthNestedInput)gql" sv, R"md( )md" sv);
181213 schema->AddType (R"gql( FourthNestedInput)gql" sv, typeFourthNestedInput);
214+ auto typeIncludeNullableSelfInput = schema::InputObjectType::Make (R"gql( IncludeNullableSelfInput)gql" sv, R"md( )md" sv);
215+ schema->AddType (R"gql( IncludeNullableSelfInput)gql" sv, typeIncludeNullableSelfInput);
216+ auto typeIncludeNonNullableListSelfInput = schema::InputObjectType::Make (R"gql( IncludeNonNullableListSelfInput)gql" sv, R"md( )md" sv);
217+ schema->AddType (R"gql( IncludeNonNullableListSelfInput)gql" sv, typeIncludeNonNullableListSelfInput);
182218 auto typeSecondNestedInput = schema::InputObjectType::Make (R"gql( SecondNestedInput)gql" sv, R"md( )md" sv);
183219 schema->AddType (R"gql( SecondNestedInput)gql" sv, typeSecondNestedInput);
220+ auto typeForwardDeclaredInput = schema::InputObjectType::Make (R"gql( ForwardDeclaredInput)gql" sv, R"md( )md" sv);
221+ schema->AddType (R"gql( ForwardDeclaredInput)gql" sv, typeForwardDeclaredInput);
184222 auto typeFirstNestedInput = schema::InputObjectType::Make (R"gql( FirstNestedInput)gql" sv, R"md( )md" sv);
185223 schema->AddType (R"gql( FirstNestedInput)gql" sv, typeFirstNestedInput);
186224 auto typeNode = schema::InterfaceType::Make (R"gql( Node)gql" sv, R"md( Node interface for Relay support)md" sv);
@@ -242,10 +280,20 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
242280 typeFourthNestedInput->AddInputValues ({
243281 schema::InputValue::Make (R"gql( id)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( ID)gql" sv)), R"gql( )gql" sv)
244282 });
283+ typeIncludeNullableSelfInput->AddInputValues ({
284+ schema::InputValue::Make (R"gql( self)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( IncludeNullableSelfInput)gql" sv), R"gql( )gql" sv)
285+ });
286+ typeIncludeNonNullableListSelfInput->AddInputValues ({
287+ schema::InputValue::Make (R"gql( selves)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::NON_NULL, schema->WrapType (introspection::TypeKind::LIST, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( IncludeNonNullableListSelfInput)gql" sv)))), R"gql( )gql" sv)
288+ });
245289 typeSecondNestedInput->AddInputValues ({
246290 schema::InputValue::Make (R"gql( id)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( ID)gql" sv)), R"gql( )gql" sv),
247291 schema::InputValue::Make (R"gql( third)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( ThirdNestedInput)gql" sv)), R"gql( )gql" sv)
248292 });
293+ typeForwardDeclaredInput->AddInputValues ({
294+ schema::InputValue::Make (R"gql( nullableSelf)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( IncludeNullableSelfInput)gql" sv), R"gql( )gql" sv),
295+ schema::InputValue::Make (R"gql( listSelves)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( IncludeNonNullableListSelfInput)gql" sv)), R"gql( )gql" sv)
296+ });
249297 typeFirstNestedInput->AddInputValues ({
250298 schema::InputValue::Make (R"gql( id)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( ID)gql" sv)), R"gql( )gql" sv),
251299 schema::InputValue::Make (R"gql( second)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( SecondNestedInput)gql" sv)), R"gql( )gql" sv),
0 commit comments