@@ -421,23 +421,25 @@ SameResponseShape(fieldA, fieldB) :
421
421
* Let {typeA} be the return type of {fieldA}.
422
422
* Let {typeB} be the return type of {fieldB}.
423
423
* If {typeA} or {typeB} is Non-Null.
424
- * {typeA} and {typeB} must both be Non-Null .
424
+ * If {typeA} or {typeB} is nullable, return false .
425
425
* Let {typeA} be the nullable type of {typeA}
426
426
* Let {typeB} be the nullable type of {typeB}
427
427
* If {typeA} or {typeB} is List.
428
- * {typeA} and {typeB} must both be List.
428
+ * If {typeA} or {typeB} is not List, return false .
429
429
* Let {typeA} be the item type of {typeA}
430
430
* Let {typeB} be the item type of {typeB}
431
431
* Repeat from step 3.
432
432
* If {typeA} or {typeB} is Scalar or Enum.
433
- * {typeA} and {typeB} must be the same type.
434
- * Assert: {typeA} and {typeB} are both composite types.
433
+ * If {typeA} and {typeB} are the same type return true, otherwise return
434
+ false.
435
+ * If {typeA} or {typeB} is not a composite type, return false.
435
436
* Let {mergedSet} be the result of adding the selection set of {fieldA} and
436
437
the selection set of {fieldB}.
437
438
* Let {fieldsForName} be the set of selections with a given response name in
438
439
{mergedSet} including visiting fragments and inline fragments.
439
440
* Given each pair of members {subfieldA} and {subfieldB} in {fieldsForName}:
440
- * {SameResponseShape(subfieldA, subfieldB)} must be true.
441
+ * If {SameResponseShape(subfieldA, subfieldB)} is false, return false.
442
+ * Return true.
441
443
442
444
** Explanatory Text**
443
445
0 commit comments