Rpc error: code = Unimplemented desc = unknown method Mutate for service api.Dgraph

As the README says, dgo 2.0 is only compatible with dgraph 1.1. You will have to change the import in your code to -

github.com/dgraph-io/dgo/v2
github.com/dgraph-io/dgo/v2/protos/api
2 Likes