The Users category is meant for asking questions and discussing things. However, we have specific categories for some things. We would appreciate if you could post in the correct category.
Is Your Question About | Correct Category |
---|---|
Dgraph | Users > Dgraph |
GraphQL | Users > GraphQL |
Slash GraphQL | Users > Slash GraphQL |
Ratel | Users > Ratel |
Badger | Users > Badger |
Ristretto | Users > Ristretto |
DGraph version: v21.12.0
Models
type Director {
DirectorName: string
Actor: uid
}
type Actor {
ActorName
movies: [string]
}
Requests
- I have 10,000 director items, and 100,000 actor items.
- I Want query 3000 director and corresponding actor items.
My Solution(not work)
{
dires as q(func: type(Director), first: 7000)
q(func: type(Director)) @filter(uid_in(DirectorName, uid(dires))) {
uid
DirectorName
DirectorActor() {
uid
ActorName
}
}
}
Could anyone figures out mistakes? thx