Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor grammar fixes in collectFields documentation #3422

Merged
merged 1 commit into from Dec 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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