Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrctype-aliasesBaseLoaderOptions

Type Alias: BaseLoaderOptions

BaseLoaderOptions = GraphQLParseOptions & BuildSchemaOptions & object

Defined in: packages/utils/src/loaders.ts:17 

Type Declaration

cwd?

optional cwd?: string

errorHandling?

optional errorHandling?: LoadErrorHandling

How to handle a parse or load failure for one source.

  • throw (default): throw the first error. Other sources from the same pointer are not returned.
  • aggregate: collect every failed source, then throw AggregateError.
  • return: do not throw. Failed sources are { location, error } with no document.

ignore?

optional ignore?: string | string[]

includeSources?

optional includeSources?: boolean