MCPcopy Create free account
hub / github.com/vektah/gqlparser / LoadSchema

Function LoadSchema

validator/schema.go:14–20  ·  view source on GitHub ↗
(inputs ...*Source)

Source from the content-addressed store, hash-verified

12)
13
14func LoadSchema(inputs ...*Source) (*Schema, error) {
15 sd, err := parser.ParseSchemas(inputs...)
16 if err != nil {
17 return nil, gqlerror.WrapIfUnwrapped(err)
18 }
19 return ValidateSchemaDocument(sd)
20}
21
22func ValidateSchemaDocument(sd *SchemaDocument) (*Schema, error) {
23 schema := Schema{

Callers 8

LoadSchemaFunction · 0.92
MustLoadSchemaFunction · 0.92
TestDeprecatingTypesFunction · 0.92
TestLoadSchemaFunction · 0.70
TestSchemaDescriptionFunction · 0.70
TestWalkerFunction · 0.70
TestWalkInlineFragmentFunction · 0.70

Calls 3

ParseSchemasFunction · 0.92
WrapIfUnwrappedFunction · 0.92
ValidateSchemaDocumentFunction · 0.85

Tested by 6

TestDeprecatingTypesFunction · 0.74
TestLoadSchemaFunction · 0.56
TestSchemaDescriptionFunction · 0.56
TestWalkerFunction · 0.56
TestWalkInlineFragmentFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…