Skip to content

Commit 0e4e7b0

Browse files
committed
Misc comment typos
1 parent a033219 commit 0e4e7b0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/__tests__/starWarsSchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ var droidType = new GraphQLObjectType({
224224
* This is the type that will be the root of our query, and the
225225
* entry point into our schema. It gives us the ability to fetch
226226
* objects by their IDs, as well as to fetch the undisputed hero
227-
* of the Star Wars triolgy, R2-D2, directly.
227+
* of the Star Wars trilogy, R2-D2, directly.
228228
*
229229
* This implements the following type system shorthand:
230230
* type Query {

src/executor/executor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ type ExecutionContext = {
8989
}
9090

9191
/**
92-
* The result of exeution. `data` is the result of executing the
92+
* The result of execution. `data` is the result of executing the
9393
* query, `errors` is null if no errors occurred, and is a
9494
* non-empty array if an error occurred.
9595
*/
@@ -483,7 +483,7 @@ function resolveField(
483483
/**
484484
* Resolves the field on the given source object. In particular, this
485485
* figures out the object that the field returns using the resolve function,
486-
* then calls completeField to corece scalars or execute the sub
486+
* then calls completeField to coerce scalars or execute the sub
487487
* selection set for objects.
488488
*/
489489
function resolveFieldOrError(
@@ -666,7 +666,7 @@ function isThenable(value: any): boolean {
666666
/**
667667
* This method looks up the field on the given type defintion.
668668
* It has special casing for the two introspection fields, __schema
669-
* and __typename. __typename is special becuase it can always be
669+
* and __typename. __typename is special because it can always be
670670
* queried as a field, even in situations where no other fields
671671
* are allowed, like on a Union. __schema could get automatically
672672
* added to the query type, but that would require mutating type

src/language/source.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* A representation of source input to GraphQL. The name is optional,
1313
* but is mostly useful for clients who store GraphQL documents in
14-
* souce files; for example, if the GraphQL input is in a file Foo.graphql,
14+
* source files; for example, if the GraphQL input is in a file Foo.graphql,
1515
* it might be useful for name to be "Foo.graphql".
1616
*/
1717
export class Source {

src/language/visitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const BREAK = {};
4242

4343
/**
4444
* visit() will walk through an AST using a depth first traversal, calling
45-
* the visitor's enter function at each node in the traveral, and calling the
45+
* the visitor's enter function at each node in the traversal, and calling the
4646
* leave function after visiting that node and all of it's child nodes.
4747
*
4848
* By returning different values from the enter and leave functions, the

0 commit comments

Comments
 (0)