MCPcopy Create free account
hub / github.com/subquery/subql / buildSchemaFromFile

Function buildSchemaFromFile

packages/utils/src/graphql/schema.ts:14–16  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

12}
13
14export function buildSchemaFromFile(path: string): GraphQLSchema {
15 return buildSchemaFromString(fs.readFileSync(path).toString());
16}
17
18export function buildSchemaFromString(raw: string): GraphQLSchema {
19 const src = new Source(raw);

Callers 2

getSchemaFunction · 0.90

Calls 1

buildSchemaFromStringFunction · 0.85

Tested by

no test coverage detected