dgraph version:v2.0.0-beta1
Something like this:
curl -H "Content-Type: application/json" "localhost:8080/mutate?commitNow=true" -XPOST --data-binary @YOURDATAHERE.json
And additionally depending on your data size we would recommend using the Live Loader or Bulk Loader. They both accept JSON
1 Like