MCPcopy
hub / github.com/dgraph-io/dgraph / validatePredName

Function validatePredName

edgraph/server.go:2401–2407  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

2399}
2400
2401func validatePredName(name string) error {
2402 if len(name) > math.MaxUint16 {
2403 return errors.Errorf("Predicate name length cannot be bigger than 2^16. Predicate: %v",
2404 name[:80])
2405 }
2406 return nil
2407}
2408
2409// formatTypes takes a list of TypeUpdates and converts them in to a list of
2410// maps in a format that is human-readable to be marshaled into JSON.

Callers 3

validateNQuadsFunction · 0.85
validateQueryFunction · 0.85

Calls 1

ErrorfMethod · 0.45

Tested by

no test coverage detected