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

Function buildSchemaFromDocumentNode

packages/utils/src/graphql/schema.ts:24–26  ·  view source on GitHub ↗
(doc: DocumentNode)

Source from the content-addressed store, hash-verified

22}
23
24export function buildSchemaFromDocumentNode(doc: DocumentNode): GraphQLSchema {
25 return extendSchema(loadBaseSchema(), doc);
26}

Callers 3

graphql.spec.tsFile · 0.90
makeSchemaFunction · 0.90
buildSchemaFromStringFunction · 0.85

Calls 1

loadBaseSchemaFunction · 0.85

Tested by 1

makeSchemaFunction · 0.72