I am using dgraph v1.2.1 and was trying to migrate to latest version.
I ran
dgraph alpha --whitelist localhost, my_ip_address
Then
curl -Ss -H “Content-Type: application/json” http://localhost:8080/admin -XPOST -d ‘{ “query”: “mutation { export(input: {format: “json”}) { response { code message } }}” }’
I received the following:
curl: (6) Could not resolve host: application
But when i tried
curl localhost:8080/admin/export
it works and exports into RDF format. I want the export in JSON format.
Can someone help me please?