Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GraphQLCache

Implements

  • GraphQLCache

Index

Constructors

constructor

Properties

_configDir

_configDir: Uri

_fragmentDefinitionsCache

_fragmentDefinitionsCache: Map<Uri, Map<string, FragmentInfo>>

_graphQLConfig

_graphQLConfig: GraphQLConfig

_graphQLFileListCache

_graphQLFileListCache: Map<Uri, Map<string, GraphQLFileInfo>>

_logger

_logger: Logger | NoopLogger

_parser

_parser: typeof parseDocument

_schemaMap

_schemaMap: Map<Uri, GraphQLSchema>

_typeDefinitionsCache

_typeDefinitionsCache: Map<Uri, Map<string, ObjectTypeInfo>>

_typeExtensionMap

_typeExtensionMap: Map<Uri, number>

Methods

_cacheKeyForProject

  • _cacheKeyForProject(__namedParameters: { dirpath: string; name: string }): string

_extendSchema

  • _extendSchema(schema: GraphQLSchema, schemaPath: string | null, schemaCacheKey: string | null): GraphQLSchema

_getProjectName

  • _getProjectName(projectConfig: GraphQLProjectConfig): GraphQLProjectConfig

_getSchemaAndDocumentFilePatterns

  • _getSchemaAndDocumentFilePatterns(projectConfig: GraphQLProjectConfig): string[]

_getSchemaCacheKeyForProject

  • _getSchemaCacheKeyForProject(projectConfig: GraphQLProjectConfig): UnnormalizedTypeDefPointer

_readFilesFromInputDirs

  • _readFilesFromInputDirs(rootDir: string, projectConfig: GraphQLProjectConfig): Promise<Array<GraphQLFileMetadata>>

_updateGraphQLFileListCache

getFragmentDefinitions

  • getFragmentDefinitions(projectConfig: GraphQLProjectConfig): Promise<Map<string, FragmentInfo>>

getFragmentDependencies

  • getFragmentDependencies(query: string, fragmentDefinitions?: Map<string, FragmentInfo> | null): Promise<FragmentInfo[]>

getFragmentDependenciesForAST

  • getFragmentDependenciesForAST(parsedQuery: ASTNode, fragmentDefinitions: Map<string, FragmentInfo>): Promise<FragmentInfo[]>

getGraphQLConfig

  • getGraphQLConfig(): GraphQLConfig

getObjectTypeDefinitions

  • getObjectTypeDefinitions(projectConfig: GraphQLProjectConfig): Promise<Map<string, ObjectTypeInfo>>

getObjectTypeDependencies

getObjectTypeDependenciesForAST

getProjectForFile

  • getProjectForFile(uri: string): GraphQLProjectConfig | void

getSchema

  • getSchema(appName?: undefined | string, queryHasExtensions?: boolean | null): Promise<GraphQLSchema | null>

invalidateSchemaCacheForProject

  • invalidateSchemaCacheForProject(projectConfig: GraphQLProjectConfig): void

processGraphQLFiles

promiseToReadGraphQLFile

readAllGraphQLFiles

updateFragmentDefinition

  • updateFragmentDefinition(rootDir: Uri, filePath: Uri, contents: Array<CachedContent>): Promise<void>

updateFragmentDefinitionCache

  • updateFragmentDefinitionCache(rootDir: Uri, filePath: Uri, exists: boolean): Promise<void>

updateObjectTypeDefinition

  • updateObjectTypeDefinition(rootDir: Uri, filePath: Uri, contents: Array<CachedContent>): Promise<void>

updateObjectTypeDefinitionCache

  • updateObjectTypeDefinitionCache(rootDir: Uri, filePath: Uri, exists: boolean): Promise<void>

Generated using TypeDoc