+15
-3
src/getSchema.ts
+15
-3
src/getSchema.ts
···+export const loadSchema = (root: string, schema: string): { current: GraphQLSchema | null } => {
+9
-7
src/index.ts
+9
-7
src/index.ts
············-const suggestions = getAutocompleteSuggestions(schema, text, new Cursor(foundToken.line, foundToken.start))+const suggestions = getAutocompleteSuggestions(schema.current, text, new Cursor(foundToken.line, foundToken.start))···-const hoverInfo = getHoverInformation(schema as GraphQLSchema, text, new Cursor(foundToken.line, foundToken.start))+const hoverInfo = getHoverInformation(schema.current, text, new Cursor(foundToken.line, foundToken.start))
+5
-1
src/types/generate.ts
+5
-1
src/types/generate.ts
···-export const generateTypedDocumentNodes = async (schema: GraphQLSchema, outputFile: string, doc: string) => {+export const generateTypedDocumentNodes = async (schema: GraphQLSchema | null, outputFile: string, doc: string) => {···+// TODO: there's optimisations to be had here where we move the typescript and typescript-operations