Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.

Commit f7528c6

Browse files
committed
Fix validation
1 parent f1fbf7c commit f7528c6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/interface/src/GraphQLLanguageService.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ export class GraphQLLanguageService {
107107
];
108108
}
109109

110-
if (!schemaPath) {
110+
const schema = await this._graphQLCache
111+
.getSchema(projectConfig.projectName, queryHasExtensions)
112+
.catch(() => null);
113+
114+
if (!schema) {
111115
return [];
112116
}
113117

@@ -138,11 +142,6 @@ export class GraphQLLanguageService {
138142
return [];
139143
}
140144

141-
const schema = await this._graphQLCache.getSchema(
142-
projectConfig.projectName,
143-
queryHasExtensions,
144-
);
145-
146145
// Check if there are custom validation rules to be used
147146
let customRules;
148147
const customRulesModulePath =

0 commit comments

Comments
 (0)