IsPreDefinedPredicate returns true only if the predicate has been defined by dgraph internally in the initial schema. These are not allowed to be dropped, as well as any schema update which is different than the initial internal schema is also not allowed for these. For example, `dgraph.type` or ACL
(pred string)
| 859 | // |
| 860 | // Pre-defined predicates are subset of reserved predicates. |
| 861 | func IsPreDefinedPredicate(pred string) bool { |
| 862 | pred = ParseAttr(pred) |
| 863 | _, ok := starAllPredicateMap[strings.ToLower(pred)] |
| 864 | return ok || IsAclPredicate(pred) || IsOtherReservedPredicate(pred) |
| 865 | } |
| 866 | |
| 867 | // IsAclPredicate returns true if the predicate is in the list of reserved |
| 868 | // predicates for the ACL feature. |
no test coverage detected