graphql-tools-monorepo / loaders/git/src / GitLoader
Class: GitLoader
loaders/git/src.GitLoader
This loader loads a file from git.
const typeDefs = await loadTypedefs('git:someBranch:some/path/to/file.js', {
loaders: [new GitLoader()],
})
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new GitLoader(): GitLoader
Returns
Methods
canLoad
▸ canLoad(pointer
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
pointer | string |
Returns
Promise
<boolean
>
Defined in
packages/loaders/git/src/index.ts:52
canLoadSync
▸ canLoadSync(pointer
): boolean
Parameters
Name | Type |
---|---|
pointer | string |
Returns
boolean
Defined in
packages/loaders/git/src/index.ts:56
load
▸ load(pointer
, options
): Promise
<Source
[]>
Parameters
Name | Type |
---|---|
pointer | string |
options | GitLoaderOptions |
Returns
Promise
<Source
[]>
Implementation of
Defined in
packages/loaders/git/src/index.ts:161
loadSync
▸ loadSync(pointer
, options
): Source
[]
Parameters
Name | Type |
---|---|
pointer | string |
options | GitLoaderOptions |
Returns
Source
[]
Implementation of
Defined in
packages/loaders/git/src/index.ts:232
resolveGlobs
▸ resolveGlobs(glob
, ignores
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
glob | string |
ignores | string [] |
Returns
Promise
<string
[]>
Defined in
packages/loaders/git/src/index.ts:60
resolveGlobsSync
▸ resolveGlobsSync(glob
, ignores
): string
[]
Parameters
Name | Type |
---|---|
glob | string |
ignores | string [] |
Returns
string
[]