I am trying to bulk load JSON data to Dgraph using command line.
I tried the few approaches/commands and none of them worked for me. It kept on giving me the below error.
"Data path() does not exist"
Commands I tried:
- dgraph bulk --jsons=“loader.json” -s loader.schema
- dgraph bulk --jsons=“loader.json” -s loader.schema --http localhost:8084 --zero=localhost:7084
- dgraph bulk --jsons="./json" -s loader.schema
- dgraph bulk --jsons="./json/loader.json" -s loader.schema
and many more combinations…
But every time it would return the same error: “Data path() does not exist”
On checking the source code, it seems that “jsons” option is not handled properly and “jsonDir” path is never checked, and only rdfDir is checked. This seems to be one probable reason for this.
Can anyone help me with this?