MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / IsInternalPredicate

Function IsInternalPredicate

x/keys.go:894–897  ·  view source on GitHub ↗

IsInternalPredicate returns true if the predicate is in the internal predicate list. Currently, `uid` is the only such candidate.

(pred string)

Source from the content-addressed store, hash-verified

892// IsInternalPredicate returns true if the predicate is in the internal predicate list.
893// Currently, `uid` is the only such candidate.
894func IsInternalPredicate(pred string) bool {
895 _, ok := internalPredicateMap[strings.ToLower(ParseAttr(pred))]
896 return ok
897}
898
899// IsReservedType returns true if the given typ is reserved for internal usage, i.e.,
900// prefixed with `dgraph.`.

Callers 1

checkSchemaFunction · 0.92

Calls 1

ParseAttrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…