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

Function: loadSchema()

loadSchema(schemaPointers, options): Promise<GraphQLSchema>

Defined in: packages/load/src/schema.ts:44

Asynchronously loads a schema from the provided pointers.

Parameters

schemaPointers

UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer[]

Pointers to the sources to load the schema from

options

LoadSchemaOptions

Additional options

Returns

Promise<GraphQLSchema>