Questions tagged [dgraph-dgo]

dgo is the official Dgraph Go client which communicates with the server using gRPC. Use this tag only for dgraph DGO specific questions.

DGO is the official Dgraph Go client which communicates with the server using gRPC.

Most dgraph operations are available through dgo and most operations provided by dgo are run through the transaction system.

The dgo client allows connection to multiple Dgraph servers for distribution of workload

5 questions
3
votes
1 answer

How to update information in an existing node instead of creating a new one using Dgraph?

I am writing a Golang application using Dgraph for persisting objects. From the documentation, I can infer that a new UID and hence a new node is created everytime I mutate an object/run the code. Is there a way to update the same node data instead…
hemanik
  • 965
  • 3
  • 14
  • 33
2
votes
2 answers

Connection error rpc with Golang and DGraph

i'm trying make a mutation inside a DGraph database, but when i run the code, it throws me the next error: rpc error: code = Unavailable desc = connection close exit status 1 I'm using dGraph with docker in the port 8000, my code of golang…
1
vote
2 answers

How to dynamically build query filters

I'm and using Go to setup my own API. I'm kind of stuck right now because of how I wrote the code to dynamically create/apply the query filter. It works but I'm wondering if there is a better way to do the scenario below. For example, I have a…
1
vote
1 answer

is it possible to retrieve the current schema using dgo

Is there a way to retrieve the dgraph schema using the dgo client? What I want to do is compare my existing schema with the one on the server in order to avoid re-sending it as it triggers reindexing each time I send a schema which is already set.
Coyote
  • 2,454
  • 26
  • 47
1
vote
1 answer

How to delete quad in dgraph using dgo api.NQuad

Is it possible to remove all edges matching a predicate from a given node using api.NQuad from github.com/dgraph-io/dgo/protos/api? I'm trying to achieve the equivalent of delete {0x1234 * } func TestDeleteQuad(t *testing.T) { …
Coyote
  • 2,454
  • 26
  • 47