Function: loadTypedefs()
loadTypedefs<
AdditionalConfig>(pointerOrPointers,options):Promise<Source[]>
Defined in: packages/load/src/load-typedefs.ts:36
Asynchronously loads any GraphQL documents (i.e. executable documents like
operations and fragments as well as type system definitions) from the
provided pointers.
loadTypedefs does not merge the typeDefs when #import is used ( https://github.com/ardatan/graphql-tools/issues/2980#issuecomment-1003692728 )
Type Parameters
AdditionalConfig
AdditionalConfig = Record<string, unknown>
Parameters
pointerOrPointers
UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer[]
Pointers to the sources to load the documents from
options
LoadTypedefsOptions<Partial<AdditionalConfig>>
Additional options
Returns
Promise<Source[]>