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

Function StarAllPredicates

x/keys.go:876–882  ·  view source on GitHub ↗

StarAllPredicates returns the complete list of pre-defined predicates that needs to be expanded when * is given as a predicate.

(namespace uint64)

Source from the content-addressed store, hash-verified

874// StarAllPredicates returns the complete list of pre-defined predicates that needs to
875// be expanded when * is given as a predicate.
876func StarAllPredicates(namespace uint64) []string {
877 preds := make([]string, 0, len(starAllPredicateMap))
878 for pred := range starAllPredicateMap {
879 preds = append(preds, NamespaceAttr(namespace, pred))
880 }
881 return preds
882}
883
884func AllACLPredicates() []string {
885 preds := make([]string, 0, len(aclPredicateMap))

Callers 1

ExpandEdgesFunction · 0.92

Calls 1

NamespaceAttrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…