@graphql-tools/import

Functions#

parseImportLine#

parseImportLine(importLine: string): object

Parameters:#

NameType
importLinestring

Returns: object

NameType
fromstring
importsstring[]

Defined in: packages/import/src/index.ts:296


processImport#

processImport(filePath: string, cwd?: string, predefinedImports?: Record<string, string\>): DocumentNode

Parameters:#

NameTypeDefault value
filePathstring-
cwdstring...
predefinedImportsRecord<string, string\>...

Returns: DocumentNode

Defined in: packages/import/src/index.ts:60