Skip to content

Commit 96dc2fa

Browse files
committed
support graphql extension for loading schema
1 parent 7fbc922 commit 96dc2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/altair-app/src/app/modules/altair/effects/query.effect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ export class QueryEffects {
531531
return this.actions$.pipe(
532532
ofType(gqlSchemaActions.LOAD_SDL_SCHEMA),
533533
mergeMap((data: gqlSchemaActions.LoadSDLSchemaAction) => {
534-
openFile({ accept: '.gql' }).then((sdlData: string) => {
534+
openFile({ accept: ['.gql', '.graphql'] }).then((sdlData: string) => {
535535
try {
536536
const schema = this.gqlService.sdlToSchema(sdlData);
537537
if (schema) {

0 commit comments

Comments
 (0)