IsReservedPredicate returns true if the predicate is reserved for internal usage, i.e., prefixed with `dgraph.`. We reserve `dgraph.` as the namespace for the types/predicates we may create in future. So, users are not allowed to create a predicate under this namespace. Hence, we should always defi
(pred string)
| 844 | // 2. dgraph.blah (reserved = true, pre_defined = false) |
| 845 | // 3. person.name (reserved = false, pre_defined = false) |
| 846 | func IsReservedPredicate(pred string) bool { |
| 847 | return isReservedName(ParseAttr(pred)) |
| 848 | } |
| 849 | |
| 850 | // IsPreDefinedPredicate returns true only if the predicate has been defined by dgraph internally |
| 851 | // in the initial schema. These are not allowed to be dropped, as well as any schema update which |
no test coverage detected