Skip to content

Commit

Permalink
docs(buildASTSchema): add Subscription to list of root types (#3240)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Aug 18, 2021
1 parent e5be298 commit 91bc70b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities/buildASTSchema.ts
Expand Up @@ -27,8 +27,8 @@ export interface BuildSchemaOptions extends GraphQLSchemaValidationOptions {
* This takes the ast of a schema document produced by the parse function in
* src/language/parser.js.
*
* If no schema definition is provided, then it will look for types named Query
* and Mutation.
* If no schema definition is provided, then it will look for types named Query,
* Mutation and Subscription.
*
* Given that AST it constructs a GraphQLSchema. The resulting schema
* has no resolve methods, so execution will use default resolvers.
Expand Down

0 comments on commit 91bc70b

Please sign in to comment.