Skip to content

Commit e0474e4

Browse files
committed
Fix #230
1 parent 2c1a677 commit e0474e4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/RequestLoader.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,15 @@ void RequestLoader::reorderInputTypeDependencies() noexcept
860860
std::for_each(fields.begin(),
861861
fields.end(),
862862
[&result](const std::shared_ptr<const schema::InputValue>& field) noexcept {
863-
const auto fieldType = field->type().lock();
863+
auto fieldType = field->type().lock();
864+
auto fieldKind = fieldType->kind();
865+
866+
while (fieldKind == introspection::TypeKind::LIST
867+
|| fieldKind == introspection::TypeKind::NON_NULL)
868+
{
869+
fieldType = fieldType->ofType().lock();
870+
fieldKind = fieldType->kind();
871+
}
864872

865873
if (fieldType->kind() == introspection::TypeKind::INPUT_OBJECT)
866874
{

0 commit comments

Comments
 (0)