Error: Count number of connecting nodes

There is the error on “dgl: tips and tricks”
https://dgraph.io/docs/tips/#count-number-of-connecting-nodes

{
  uids(func: has(director.film), first: 1) {
    uid
    expand(_all_) { u as uid }
  }

  result(func: uid(u)) {
    count(uid)
  }
}
{
  "errors": [
    {
      "message": ": Query couldn't be executed",
      "extensions": {
        "code": "ErrorInvalidRequest"
      }
    }
  ],
  "data": null
}

Yep, this happens cuz somehow the Types wasn’t loaded right… We gonna fix this. Thanks!

Now it is working, thanks @rarvikar !

2 Likes