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 = {
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 */
127132export function buildASTSchema (
128133 documentAST : DocumentNode ,
You can’t perform that action at this time.
0 commit comments