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(
58
58
const directives = schema . getDirectives ( ) . filter ( directiveFilter ) ;
59
59
const types = Object . values ( schema . getTypeMap ( ) ) . filter ( typeFilter ) ;
60
60
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
+ ]
66
66
. filter ( Boolean )
67
67
. join ( '\n\n' ) ;
68
68
}
@@ -100,6 +100,7 @@ function printSchemaDefinition(schema: GraphQLSchema): ?string {
100
100
* schema {
101
101
* query: Query
102
102
* mutation: Mutation
103
+ * subscription: Subscription
103
104
* }
104
105
*
105
106
* When using this naming convention, the schema description can be omitted.
You can’t perform that action at this time.
0 commit comments