In addition to Naman’s comment. You have two options for your case. The error “cannot be greater than lease” is due to the fact that you are running a fresh cluster with defined UIDs dataset. Dgraph exports your dataset preserving the UIDs. But Dgraph can’t push the lease of UIDs based on the dataset. So you have to (options):
- Lease/allocate the UIDs manually e.g
http://localhost:6080/assign?what=uids&num=1000000
See more about it at https://dgraph.io/docs/deploy/#more-about-dgraph-zero - Use the flag
--new_uidsand Dgraph will automatically lease the UIDs for you.
In my opinion, you should go with --new_uids. But, if you ain’t gonna use the Bulk loader or Live loader, you have to use the option 1. And BTW, there’s no way to export with Blank nodes. Feel free to open an issue requesting this.
Cheers.