Error: t: Uid: [10001] cannot be greater than lease: [10000]

Uids have to be allocated by Dgraph, or leased out explicitly by Zero.

https://dgraph.io/docs/deploy/#more-about-state-endpoint

See /assign?what=uids&num=1000