We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c1a677 commit e0474e4Copy full SHA for e0474e4
src/RequestLoader.cpp
@@ -860,7 +860,15 @@ void RequestLoader::reorderInputTypeDependencies() noexcept
860
std::for_each(fields.begin(),
861
fields.end(),
862
[&result](const std::shared_ptr<const schema::InputValue>& field) noexcept {
863
- const auto fieldType = field->type().lock();
+ 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
+ }
872
873
if (fieldType->kind() == introspection::TypeKind::INPUT_OBJECT)
874
{
0 commit comments