$ dgraph version
V20.03
What you wanted to do
I want to query according to the classification of <dgraph.type>,and count the number under each category
What you actually did
Please excuse my poor GraphQL, I can’t get any information, may I ask how to write ?
{
var(func:has(dgraph.type)){
<dgraph.type> @groupby(<dgraph.type>){
a as count(uid)
}
}
Classification(func:uid(a)){
<dgraph.type>
tota:val(a)
}
}
The error message is as follows:
Error Name: t
Message: : context deadline exceeded
Raw Error:
{
"name": "t",
"url": "http://0.0.0.000:8080/query?timeout=20s&debug=true",
"errors": [
{
"message": ": context deadline exceeded",
"extensions": {
"code": "ErrorInvalidRequest"
}
}
]
}