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

Function loadBaseSchema

packages/utils/src/graphql/schema.ts:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import {scalas} from './schema/scalas';
8
9function loadBaseSchema(): GraphQLSchema {
10 const schema = buildASTSchema(scalas);
11 return extendSchema(schema, directives);
12}
13
14export function buildSchemaFromFile(path: string): GraphQLSchema {
15 return buildSchemaFromString(fs.readFileSync(path).toString());

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected