There is a hack way of leasing UIDs. A simple mutation with empty data.
e.g:
{
set {
_:Lease1 <dgraph.type> "Object" .
_:Lease2 <dgraph.type> "Object" .
_:Lease3 <dgraph.type> "Object" .
_:Lease4 <dgraph.type> "Object" .
_:Lease5 <dgraph.type> "Object" .
_:Lease6 <dgraph.type> "Object" .
_:Lease7 <dgraph.type> "Object" .
}
}
And then you can use a method to extract the UIDs.