Skip to content

Commit 4f56285

Browse files
authored
Minor grammar fixes in collectFields documentation (#3422)
1 parent c8bbb0a commit 4f56285

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/execution/collectFields.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import { typeFromAST } from '../utilities/typeFromAST';
2222
import { getDirectiveValues } from './values';
2323

2424
/**
25-
* Given a selectionSet, collect all of the fields and returns it at the end.
25+
* Given a selectionSet, collects all of the fields and returns them.
2626
*
27-
* CollectFields requires the "runtime type" of an object. For a field which
27+
* CollectFields requires the "runtime type" of an object. For a field that
2828
* returns an Interface or Union type, the "runtime type" will be the actual
29-
* Object type returned by that field.
29+
* object type returned by that field.
3030
*
3131
* @internal
3232
*/
@@ -52,11 +52,11 @@ export function collectFields(
5252

5353
/**
5454
* Given an array of field nodes, collects all of the subfields of the passed
55-
* in fields, and returns it at the end.
55+
* in fields, and returns them at the end.
5656
*
57-
* CollectFields requires the "return type" of an object. For a field which
57+
* CollectSubFields requires the "return type" of an object. For a field that
5858
* returns an Interface or Union type, the "return type" will be the actual
59-
* Object type returned by that field.
59+
* object type returned by that field.
6060
*
6161
* @internal
6262
*/

0 commit comments

Comments
 (0)