IsInternalPredicate returns true if the predicate is in the internal predicate list. Currently, `uid` is the only such candidate.
(pred string)
| 892 | // IsInternalPredicate returns true if the predicate is in the internal predicate list. |
| 893 | // Currently, `uid` is the only such candidate. |
| 894 | func 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.`. |
no test coverage detected
searching dependent graphs…