File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -734,9 +734,22 @@ the {objectValue}.
734
734
735
735
ResolveAbstractType(abstractType, objectValue):
736
736
737
- - Return the result of calling the internal method provided by the type system
738
- for determining the Object type of {abstractType} given the value
739
- {objectValue}.
737
+ - Let {resolvedType} be the result of calling the internal method provided by
738
+ the type system for determining the Object type of {abstractType} given the
739
+ value {objectValue}.
740
+ - Assert {resolvedType} is an Object type.
741
+ - If {IsSubType(abstractType, resolvedType)}:
742
+ - Return {resolvedType}.
743
+ - Otherwise, raise a field error.
744
+
745
+ IsSubType(superType, maybeSubType):
746
+
747
+ - If {abstractType} is an Interface type.
748
+ - If {resolvedType} implements {abstractType}, return {true}.
749
+ - Otherwise, return {false}.
750
+ - If {abstractType} is a Union type.
751
+ - If {resolvedType} is a member type of {abstractType}, return {true}.
752
+ - Otherwise, return {false}.
740
753
741
754
** Merging Selection Sets**
742
755
You can’t perform that action at this time.
0 commit comments