File tree Expand file tree Collapse file tree
packages/apollo-language-server/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export interface ClientConfigFormat extends ConfigBase {
6565 referenceID ?: string ;
6666 version ?: string ;
6767 // client schemas
68+ localSchemaFile ?: string ;
6869 clientOnlyDirectives ?: string [ ] ;
6970 clientSchemaDirectives ?: string [ ] ;
7071 addTypename ?: boolean ;
Original file line number Diff line number Diff line change @@ -31,7 +31,13 @@ export function schemaProviderFromConfig(
3131 if ( typeof config . client . service === "string" ) {
3232 return new EngineSchemaProvider ( config ) ;
3333 }
34+
35+ if ( config . client . localSchemaFile ) {
36+ return new FileSchemaProvider ( { path : config . client . localSchemaFile } ) ;
37+ }
38+
3439 return new IntrospectionSchemaProvider ( config . client . service ) ;
3540 }
41+
3642 throw new Error ( "No provider was created for config" ) ;
3743}
You can’t perform that action at this time.
0 commit comments