Skip to content

Commit

Permalink
Array Resolver Fragment Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schadek committed Aug 22, 2023
1 parent 480fc82 commit 5dc9025
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/graphql/graphql.d
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,15 @@ class GraphQLD(T, QContext = DefaultContext) {
scope(exit) {
ec.path.popBack();
}
GQLDType* top = unPacked.name in this.schema.types;
GQLDType nested = top is null
? GQLDType.init
: this.schema.getReturnType(*top, field.name);
GQLDType nestedUnpacked = unpack2(nested);

FieldRangeItem[] fri = fieldRangeArr(field.f.ss.sel, doc
, interfacesForType(this.schema
, objectValue.getWithDefault!string("data.__typename"
, "__typename"))
, nestedUnpacked.name)
, variables);

fieldsHandledByArrayResolver ~= field.name;
Expand Down

0 comments on commit 5dc9025

Please sign in to comment.