Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/importsrcfunctionsextractImportLines

Function: extractImportLines()

extractImportLines(fileContent): object

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

Splits the contents of a GraphQL file into lines that are imports and other lines which define the actual GraphQL document.

Parameters

fileContent

string

Returns

object

importLines

importLines: string[]

otherLines

otherLines: string