@@ -155,7 +155,7 @@ std::shared_ptr<Schema> Schema::StitchSchema(const std::shared_ptr<const Schema>
155
155
156
156
if (itrOriginal != _typeMap.end ())
157
157
{
158
- break ;
158
+ continue ;
159
159
}
160
160
161
161
switch (addedType->kind ())
@@ -247,7 +247,7 @@ std::shared_ptr<Schema> Schema::StitchSchema(const std::shared_ptr<const Schema>
247
247
248
248
if (itrAdded != added->_typeMap .end ())
249
249
{
250
- const auto & addedType = _types[itrAdded->second ].second ;
250
+ const auto & addedType = added-> _types [itrAdded->second ].second ;
251
251
const auto & enumValues = addedType->enumValues ();
252
252
253
253
for (const auto & value : enumValues)
@@ -293,7 +293,7 @@ std::shared_ptr<Schema> Schema::StitchSchema(const std::shared_ptr<const Schema>
293
293
294
294
if (itrAdded != added->_typeMap .end ())
295
295
{
296
- const auto & addedType = _types[itrAdded->second ].second ;
296
+ const auto & addedType = added-> _types [itrAdded->second ].second ;
297
297
const auto & inputObjectValues = addedType->inputFields ();
298
298
299
299
for (const auto & value : inputObjectValues)
@@ -349,7 +349,7 @@ std::shared_ptr<Schema> Schema::StitchSchema(const std::shared_ptr<const Schema>
349
349
350
350
if (itrAdded != added->_typeMap .end ())
351
351
{
352
- const auto & addedType = _types[itrAdded->second ].second ;
352
+ const auto & addedType = added-> _types [itrAdded->second ].second ;
353
353
const auto & interfaceFields = addedType->fields ();
354
354
355
355
for (const auto & interfaceField : interfaceFields)
@@ -404,7 +404,7 @@ std::shared_ptr<Schema> Schema::StitchSchema(const std::shared_ptr<const Schema>
404
404
405
405
if (itrAdded != added->_typeMap .end ())
406
406
{
407
- const auto & addedType = _types[itrAdded->second ].second ;
407
+ const auto & addedType = added-> _types [itrAdded->second ].second ;
408
408
const auto & possibleTypes = addedType->possibleTypes ();
409
409
410
410
for (const auto & possibleType : possibleTypes)
@@ -469,7 +469,7 @@ std::shared_ptr<Schema> Schema::StitchSchema(const std::shared_ptr<const Schema>
469
469
470
470
if (itrAdded != added->_typeMap .end ())
471
471
{
472
- const auto & addedType = _types[itrAdded->second ].second ;
472
+ const auto & addedType = added-> _types [itrAdded->second ].second ;
473
473
const auto & objectInterfaces = addedType->interfaces ();
474
474
475
475
for (const auto & interfaceType : objectInterfaces)
@@ -605,11 +605,12 @@ std::shared_ptr<const BaseType> Schema::StitchFieldType(std::shared_ptr<const Ba
605
605
switch (fieldType->kind ())
606
606
{
607
607
case introspection::TypeKind::LIST:
608
- return WrapType (introspection::TypeKind::LIST, StitchFieldType (std::move (fieldType)));
608
+ return WrapType (introspection::TypeKind::LIST,
609
+ StitchFieldType (fieldType->ofType ().lock ()));
609
610
610
611
case introspection::TypeKind::NON_NULL:
611
612
return WrapType (introspection::TypeKind::NON_NULL,
612
- StitchFieldType (std::move ( fieldType)));
613
+ StitchFieldType (fieldType-> ofType (). lock ( )));
613
614
614
615
default :
615
616
return LookupType (fieldType->name ());
0 commit comments