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

Function IsOtherReservedPredicate

x/keys.go:825–828  ·  view source on GitHub ↗

IsOtherReservedPredicate returns true if it is the predicate is reserved by graphql. These are a subset of PreDefined predicates, so follow all their properties. In addition, the value for these predicates is also not allowed to be mutated directly by the users.

(pred string)

Source from the content-addressed store, hash-verified

823// These are a subset of PreDefined predicates, so follow all their properties. In addition,
824// the value for these predicates is also not allowed to be mutated directly by the users.
825func IsOtherReservedPredicate(pred string) bool {
826 _, ok := otherReservedPredicate[pred]
827 return ok
828}
829
830// IsReservedPredicate returns true if the predicate is reserved for internal usage, i.e., prefixed
831// with `dgraph.`.

Callers 2

IsPreDefinedPredicateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected