How can one use grpcurl with Dgraph? Is reflection API supported?
What I want to do
Use grpcurl
for adhoc queries using GRPC.
What I did
I get thsi error when using this tool against Dgraph:
$ grpcurl -plaintext localhost:9080 api.Dgraph/CheckVersion
Error invoking method "api.Dgraph/CheckVersion": failed to query for service descriptor "api.Dgraph": server does not support the reflection API
So the work around is to reference the api.proto:
curl -sOL https://raw.githubusercontent.com/dgraph-io/pydgraph/master/pydgraph/proto/api.proto
grpcurl -plaintext -proto ./api.proto localhost:9080 api.Dgraph/CheckVersion
{
"tag": "v21.03.1"
}