File tree 3 files changed +7
-2
lines changed
packages/graphql-codegen-cli/src
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphql-codegen/cli ' : patch
3
+ ---
4
+
5
+ Fix schema pointers type to allow an array of pointers
Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ export class CodegenContext {
422
422
return this . _pluginContext ;
423
423
}
424
424
425
- async loadSchema ( pointer : Types . Schema ) : Promise < GraphQLSchema > {
425
+ async loadSchema ( pointer : Types . Schema | Types . Schema [ ] ) : Promise < GraphQLSchema > {
426
426
const config = this . getConfig ( defaultSchemaLoadOptions ) ;
427
427
if ( this . _graphqlConfig ) {
428
428
// TODO: SchemaWithLoader won't work here
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const defaultDocumentsLoadOptions = {
28
28
} ;
29
29
30
30
export async function loadSchema (
31
- schemaPointers : UnnormalizedTypeDefPointer ,
31
+ schemaPointers : UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer [ ] ,
32
32
config : Types . Config
33
33
) : Promise < GraphQLSchema > {
34
34
try {
You can’t perform that action at this time.
0 commit comments