Pagination param "after" does not work when using func: uid(v)

diggy
Sun, 19 Apr 2020 06:45:58 +0000
Dgraph

Moved from GitHub dgraph/5242

Posted by dkjii-g:

What version of Dgraph are you using?

v1.2.0

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, OS)?

4G, Linux

Steps to reproduce the issue (command/config used to run Dgraph).

Go to
https://dgraph.io/docs/query-language/#inequality
Try:

curl -H "Content-Type: application/graphql+-" localhost:8080/query -XPOST -d '
{
  var(func: has(name@en), first: 50) {
    test as uid
  }

  ss(func: uid(test), first: 2, after: 0x6) {
    uid
  }
}' | python -m json.tool | less

Response:

{
  "data": {
    "ss": [
      {
        "uid": "0x4"
      },
      {
        "uid": "0x6"
      }
    ]
  }
}

Expected behaviour and actual result.

Expected:
Returns uid > 0x6

4 posts - 2 participants