@@ -145,6 +145,38 @@ today::IncludeNonNullableListSelfInput ModifiedArgument<today::IncludeNonNullabl
145
145
};
146
146
}
147
147
148
+ template <>
149
+ today::StringOperationFilterInput ModifiedArgument<today::StringOperationFilterInput>::convert(const response::Value& value)
150
+ {
151
+ auto valueAnd_ = service::ModifiedArgument<today::StringOperationFilterInput>::require<service::TypeModifier::Nullable, service::TypeModifier::List>(" and" , value);
152
+ auto valueOr_ = service::ModifiedArgument<today::StringOperationFilterInput>::require<service::TypeModifier::Nullable, service::TypeModifier::List>(" or" , value);
153
+ auto valueEqual = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable>(" equal" , value);
154
+ auto valueNotEqual = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable>(" notEqual" , value);
155
+ auto valueContains = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable>(" contains" , value);
156
+ auto valueNotContains = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable>(" notContains" , value);
157
+ auto valueIn = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable, service::TypeModifier::List>(" in" , value);
158
+ auto valueNotIn = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable, service::TypeModifier::List>(" notIn" , value);
159
+ auto valueStartsWith = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable>(" startsWith" , value);
160
+ auto valueNotStartsWith = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable>(" notStartsWith" , value);
161
+ auto valueEndsWith = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable>(" endsWith" , value);
162
+ auto valueNotEndsWith = service::ModifiedArgument<std::string>::require<service::TypeModifier::Nullable>(" notEndsWith" , value);
163
+
164
+ return {
165
+ std::move (valueAnd_),
166
+ std::move (valueOr_),
167
+ std::move (valueEqual),
168
+ std::move (valueNotEqual),
169
+ std::move (valueContains),
170
+ std::move (valueNotContains),
171
+ std::move (valueIn),
172
+ std::move (valueNotIn),
173
+ std::move (valueStartsWith),
174
+ std::move (valueNotStartsWith),
175
+ std::move (valueEndsWith),
176
+ std::move (valueNotEndsWith)
177
+ };
178
+ }
179
+
148
180
template <>
149
181
today::SecondNestedInput ModifiedArgument<today::SecondNestedInput>::convert(const response::Value& value)
150
182
{
@@ -215,6 +247,8 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
215
247
schema->AddType (R"gql( IncludeNullableSelfInput)gql" sv, typeIncludeNullableSelfInput);
216
248
auto typeIncludeNonNullableListSelfInput = schema::InputObjectType::Make (R"gql( IncludeNonNullableListSelfInput)gql" sv, R"md( )md" sv);
217
249
schema->AddType (R"gql( IncludeNonNullableListSelfInput)gql" sv, typeIncludeNonNullableListSelfInput);
250
+ auto typeStringOperationFilterInput = schema::InputObjectType::Make (R"gql( StringOperationFilterInput)gql" sv, R"md( )md" sv);
251
+ schema->AddType (R"gql( StringOperationFilterInput)gql" sv, typeStringOperationFilterInput);
218
252
auto typeSecondNestedInput = schema::InputObjectType::Make (R"gql( SecondNestedInput)gql" sv, R"md( )md" sv);
219
253
schema->AddType (R"gql( SecondNestedInput)gql" sv, typeSecondNestedInput);
220
254
auto typeForwardDeclaredInput = schema::InputObjectType::Make (R"gql( ForwardDeclaredInput)gql" sv, R"md( )md" sv);
@@ -283,6 +317,20 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
283
317
typeIncludeNonNullableListSelfInput->AddInputValues ({
284
318
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)
285
319
});
320
+ typeStringOperationFilterInput->AddInputValues ({
321
+ schema::InputValue::Make (R"gql( and)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::LIST, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( StringOperationFilterInput)gql" sv))), R"gql( )gql" sv),
322
+ schema::InputValue::Make (R"gql( or)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::LIST, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( StringOperationFilterInput)gql" sv))), R"gql( )gql" sv),
323
+ schema::InputValue::Make (R"gql( equal)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( String)gql" sv), R"gql( )gql" sv),
324
+ schema::InputValue::Make (R"gql( notEqual)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( String)gql" sv), R"gql( )gql" sv),
325
+ schema::InputValue::Make (R"gql( contains)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( String)gql" sv), R"gql( )gql" sv),
326
+ schema::InputValue::Make (R"gql( notContains)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( String)gql" sv), R"gql( )gql" sv),
327
+ schema::InputValue::Make (R"gql( in)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::LIST, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( String)gql" sv))), R"gql( )gql" sv),
328
+ schema::InputValue::Make (R"gql( notIn)gql" sv, R"md( )md" sv, schema->WrapType (introspection::TypeKind::LIST, schema->WrapType (introspection::TypeKind::NON_NULL, schema->LookupType (R"gql( String)gql" sv))), R"gql( )gql" sv),
329
+ schema::InputValue::Make (R"gql( startsWith)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( String)gql" sv), R"gql( )gql" sv),
330
+ schema::InputValue::Make (R"gql( notStartsWith)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( String)gql" sv), R"gql( )gql" sv),
331
+ schema::InputValue::Make (R"gql( endsWith)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( String)gql" sv), R"gql( )gql" sv),
332
+ schema::InputValue::Make (R"gql( notEndsWith)gql" sv, R"md( )md" sv, schema->LookupType (R"gql( String)gql" sv), R"gql( )gql" sv)
333
+ });
286
334
typeSecondNestedInput->AddInputValues ({
287
335
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),
288
336
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)
0 commit comments