File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -112,17 +112,22 @@ export type BuildSchemaOptions = {
112
112
* This takes the ast of a schema document produced by the parse function in
113
113
* src/language/parser.js.
114
114
*
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 .
117
117
*
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.
120
121
*
121
122
* Accepts options as a second argument:
122
123
*
123
124
* - commentDescriptions:
124
125
* Provide true to use preceding comments as the description.
125
126
*
127
+ * - resolvers — map of named types
128
+ * - Object, Interface — field resolvers
129
+ * - Enum — External string → any internal value
130
+ *
126
131
*/
127
132
export function buildASTSchema (
128
133
documentAST : DocumentNode ,
You can’t perform that action at this time.
0 commit comments