Skip to content

Commit fb042fc

Browse files
authored
Make documentation for 'getFieldDef' more accurate (#2687)
1 parent c8b0614 commit fb042fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/execution/execute.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,12 +1222,12 @@ export const defaultFieldResolver: GraphQLFieldResolver<
12221222

12231223
/**
12241224
* This method looks up the field on the given type definition.
1225-
* It has special casing for the two introspection fields, __schema
1226-
* and __typename. __typename is special because it can always be
1227-
* queried as a field, even in situations where no other fields
1228-
* are allowed, like on a Union. __schema could get automatically
1229-
* added to the query type, but that would require mutating type
1230-
* definitions, which would cause issues.
1225+
* It has special casing for the three introspection fields,
1226+
* __schema, __type and __typename. __typename is special because
1227+
* it can always be queried as a field, even in situations where no
1228+
* other fields are allowed, like on a Union. __schema and __type
1229+
* could get automatically added to the query type, but that would
1230+
* require mutating type definitions, which would cause issues.
12311231
*
12321232
* @internal
12331233
*/

0 commit comments

Comments
 (0)