diff --git a/packages/graphqlsp/src/graphql/getSchema.ts b/packages/graphqlsp/src/graphql/getSchema.ts index ba9d89c..4a0f1b9 100644 --- a/packages/graphqlsp/src/graphql/getSchema.ts +++ b/packages/graphqlsp/src/graphql/getSchema.ts @@ -126,12 +126,14 @@ export const loadSchema = ( } if (ref.current) { - saveTadaIntrospection( - ref.current.introspection, - tadaOutputLocation, - tadaDisablePreprocessing, - logger - ); + if (ref.current.tadaOutputLocation !== undefined) { + saveTadaIntrospection( + ref.current.introspection, + tadaOutputLocation, + tadaDisablePreprocessing, + logger + ); + } } else if (ref.multi) { Object.values(ref.multi).forEach(value => { if (!value) return;