File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/graphql-codegen-cli/src Expand file tree Collapse file tree 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 {
422422 return this . _pluginContext ;
423423 }
424424
425- async loadSchema ( pointer : Types . Schema ) : Promise < GraphQLSchema > {
425+ async loadSchema ( pointer : Types . Schema | Types . Schema [ ] ) : Promise < GraphQLSchema > {
426426 const config = this . getConfig ( defaultSchemaLoadOptions ) ;
427427 if ( this . _graphqlConfig ) {
428428 // TODO: SchemaWithLoader won't work here
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const defaultDocumentsLoadOptions = {
2828} ;
2929
3030export async function loadSchema (
31- schemaPointers : UnnormalizedTypeDefPointer ,
31+ schemaPointers : UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer [ ] ,
3232 config : Types . Config
3333) : Promise < GraphQLSchema > {
3434 try {
You can’t perform that action at this time.
0 commit comments