diff --git a/packages/graphql-language-service-server/src/GraphQLCache.ts b/packages/graphql-language-service-server/src/GraphQLCache.ts index ea591553f24..93a0db3374c 100644 --- a/packages/graphql-language-service-server/src/GraphQLCache.ts +++ b/packages/graphql-language-service-server/src/GraphQLCache.ts @@ -69,7 +69,7 @@ export async function getGraphQLCache({ loadConfigOptions: LoadConfigOptions; config?: GraphQLConfig; }): Promise { - const graphQLConfig = config || await loadConfig(loadConfigOptions); + const graphQLConfig = config || (await loadConfig(loadConfigOptions)); return new GraphQLCache({ configDir: loadConfigOptions.rootDir as string, config: graphQLConfig as GraphQLConfig,