Skip to content

Commit

Permalink
Add JSDoc for typeResolver to the graphql() function (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito authored and IvanGoncharov committed Apr 7, 2019
1 parent 8aef229 commit b8a0f3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ import type { PromiseOrValue } from './jsutils/PromiseOrValue';
* A resolver function to use when one is not provided by the schema.
* If not provided, the default field resolver is used (which looks for a
* value or method on the source value with the field's name).
* typeResolver:
* A type resolver function to use when none is provided by the schema.
* If not provided, the default type resolver is used (which looks for a
* `__typename` field or alternatively calls the `isTypeOf` method).
*/
export type GraphQLArgs = {|
schema: GraphQLSchema,
Expand Down

0 comments on commit b8a0f3b

Please sign in to comment.