Skip to content

Commit

Permalink
Minor grammar fixes in collectFields documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Dec 11, 2021
1 parent c8bbb0a commit cdd77d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/execution/collectFields.ts
Expand Up @@ -22,11 +22,11 @@ import { typeFromAST } from '../utilities/typeFromAST';
import { getDirectiveValues } from './values';

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

/**
* Given an array of field nodes, collects all of the subfields of the passed
* in fields, and returns it at the end.
* in fields, and returns them at the end.
*
* CollectFields requires the "return type" of an object. For a field which
* CollectSubFields requires the "return type" of an object. For a field that
* returns an Interface or Union type, the "return type" will be the actual
* Object type returned by that field.
* object type returned by that field.
*
* @internal
*/
Expand Down

0 comments on commit cdd77d0

Please sign in to comment.