(userId string)
| 1225 | } |
| 1226 | |
| 1227 | func 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 | |
| 1238 | func groupFilter(groupIds []string) *dql.FilterTree { |
| 1239 | // The user doesn't have any groups, so add an empty filter @filter(uid([])) so that all |
no outgoing calls
no test coverage detected