M.Lau
(Marcus Lau)
1
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?
M.Lau
(Marcus Lau)
2
Update: I managed to export in JSON via:
curl localhost:8080/admin/export?format=json
via the issue here: Remove HTTP admin endpoints by pawanrawal · Pull Request #4754 · dgraph-io/dgraph · GitHub
I just like to ask is the mutation method still working?
MichelDiz
(Michel Diz)
3
The GraphQL Admin mutations and queries are in v20.xx.x versions. Not before.
system
(system)
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.