Error when insert node to dgraph with a big uid

This means that Zero is not in the same range as the given UID. You can use:

/assign?what=uids&num=100 This would allocate num uids and return a JSON map containing startId and endId , both inclusive. This id range can be safely assigned externally to new nodes during data ingestion.

to increase the UIDs to be available.

BTW, Dgraph only accepts UIDs in Dgraph’s pattern and generated by Dgraph.