MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / userFilter

Function userFilter

edgraph/access.go:1227–1236  ·  view source on GitHub ↗
(userId string)

Source from the content-addressed store, hash-verified

1225}
1226
1227func userFilter(userId string) *dql.FilterTree {
1228 // A logged in user should always have a userId.
1229 return &dql.FilterTree{
1230 Func: &dql.Function{
1231 Attr: "dgraph.xid",
1232 Name: "eq",
1233 Args: []dql.Arg{{Value: userId}},
1234 },
1235 }
1236}
1237
1238func groupFilter(groupIds []string) *dql.FilterTree {
1239 // The user doesn't have any groups, so add an empty filter @filter(uid([])) so that all

Callers 2

addUserFilterToQueryFunction · 0.85
addUserFilterToFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected