Raw HTTP mutate client | Support for JSON mutation

Does the mutate endpoint of the Raw HTTP client (https://docs.dgraph.io/clients/#run-a-mutation-1) support the set_json syntax?

When I do this:

curl -X POST ‘http://localhost:8080/mutate’ -d $’{
set_json {
hobby: “tennis”
}
}’

I get this response:

{“errors”:[{“code”:“ErrorInvalidRequest”,“message”:“Invalid mutation operation.”}]}

Not sure. But the engineer Garvit is working in a similar solution. Soon we will have Ratel with JSON obj support. So I believe this might open an option for HTTP RAW. We’ll see.

However, I think there is some support for this. I just do not know how yet.

Good news for you

https://github.com/dgraph-io/dgraph/commit/f81956ba9dd93150ef8dfed945f251b340beb50d