File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,11 @@ function printFilteredSchema(
5858 const directives = schema . getDirectives ( ) . filter ( directiveFilter ) ;
5959 const types = Object . values ( schema . getTypeMap ( ) ) . filter ( typeFilter ) ;
6060
61- return [ printSchemaDefinition ( schema ) ]
62- . concat (
63- directives . map ( ( directive ) => printDirective ( directive ) ) ,
64- types . map ( ( type ) => printType ( type ) ) ,
65- )
61+ return [
62+ printSchemaDefinition ( schema ) ,
63+ ... directives . map ( ( directive ) => printDirective ( directive ) ) ,
64+ ... types . map ( ( type ) => printType ( type ) ) ,
65+ ]
6666 . filter ( Boolean )
6767 . join ( '\n\n' ) ;
6868}
@@ -100,6 +100,7 @@ function printSchemaDefinition(schema: GraphQLSchema): ?string {
100100 * schema {
101101 * query: Query
102102 * mutation: Mutation
103+ * subscription: Subscription
103104 * }
104105 *
105106 * When using this naming convention, the schema description can be omitted.
You can’t perform that action at this time.
0 commit comments