Skip to content

Commit c634136

Browse files
committed
Update doccomments
1 parent 84adacf commit c634136

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/utilities/buildASTSchema.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,22 @@ export type BuildSchemaOptions = {
112112
* This takes the ast of a schema document produced by the parse function in
113113
* src/language/parser.js.
114114
*
115-
* If no schema definition is provided, then it will look for types named Query
116-
* and Mutation.
115+
* If no schema definition is provided, then it will look for types named Query,
116+
* Mutation and Subscription.
117117
*
118-
* Given that AST it constructs a GraphQLSchema. The resulting schema
119-
* has no resolve methods, so execution will use default resolvers.
118+
* Given that AST it constructs a GraphQLSchema. The built schema will use
119+
* resolve methods from `options.resolvers[typeName][fieldName]` if found.
120+
* Otherwise it will use default resolvers.
120121
*
121122
* Accepts options as a second argument:
122123
*
123124
* - commentDescriptions:
124125
* Provide true to use preceding comments as the description.
125126
*
127+
* - resolvers — map of named types
128+
* - Object, Interface — field resolvers
129+
* - Enum — External string → any internal value
130+
*
126131
*/
127132
export function buildASTSchema(
128133
documentAST: DocumentNode,

0 commit comments

Comments
 (0)