How to use variables for pagination?

I have merged a fix to master with Support GraphQL vars in first, offset and after at root. · dgraph-io/dgraph@e05f0fd · GitHub and it would be part of the nightly release.