From 87a8d7ee754e48d4265ce0348f7c7defbda60bba Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 18 Aug 2021 11:53:12 +0300 Subject: [PATCH] docs(buildASTSchema): add Subscription to list of root types --- src/utilities/buildASTSchema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utilities/buildASTSchema.ts b/src/utilities/buildASTSchema.ts index 2c92bcb124..9d76b55a2c 100644 --- a/src/utilities/buildASTSchema.ts +++ b/src/utilities/buildASTSchema.ts @@ -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.