Skip to content

Commit

Permalink
Make documentation for 'getFieldDef' more accurate (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jul 5, 2020
1 parent c8b0614 commit fb042fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/execution/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -1222,12 +1222,12 @@ export const defaultFieldResolver: GraphQLFieldResolver<

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

0 comments on commit fb042fc

Please sign in to comment.