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

Function validateTypeDefinitions

validator/schema.go:233–246  ·  view source on GitHub ↗
(schema *Schema)

Source from the content-addressed store, hash-verified

231}
232
233func validateTypeDefinitions(schema *Schema) *gqlerror.Error {
234 types := make([]string, 0, len(schema.Types))
235 for typ := range schema.Types {
236 types = append(types, typ)
237 }
238 sort.Strings(types)
239 for _, typ := range types {
240 err := validateDefinition(schema, schema.Types[typ])
241 if err != nil {
242 return err
243 }
244 }
245 return nil
246}
247
248func validateDirectiveDefinitions(schema *Schema) *gqlerror.Error {
249 directives := make([]string, 0, len(schema.Directives))

Callers 1

ValidateSchemaDocumentFunction · 0.85

Calls 1

validateDefinitionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…