Questions tagged [dgraph]

Dgraph is a free, open source graph database that uses a customised version of graphql as a query language. DO NOT USE this tag for general graphql questions nor for other graph DBs.

Dgraph is an open source, scalable, distributed and highly available graph database. It's sharded storage and query processing were specifically designed to minimize the number of network calls. The database server and tools, written in go, are open-sourced and available under AGPL v3.0. The query language is named GraphQL+- and is based on Facebook’s GraphQL.

The clients communicate with the server using Protocol Buffers over gRPC. In the current version (v1.0.11), the available official clients are limited to the languages Go, Java, Javascript and Python.

For more information check following FAQ topics:

Useful links

Related Tags

106 questions
9
votes
2 answers

How do you drop a Dgraph database?

I am running Dgraph database and the interface through the suggested docker images. Is it possible to run a command that drops all the data from the database and keeps the schema? Or at the very least drop both the data and schema? Or would I just…
Errol Hassall
  • 398
  • 3
  • 16
9
votes
2 answers

Is GraphQL valid GraphQL+?

The following is true: Javascript == Typescript Typescript != Javascript Can the same be said for Dgraph's GraphQL+? GraphQL == GraphQL+ GraphQL+ != GraphQL The reason for asking, I understand that GraphQL is not sufficient for Dgraph's goals. But…
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101
7
votes
2 answers

service external ip pending kubernetes

Why service external IP address is in a pending state? Should I enable any load balancer for my kubernetes master? I'm using kubernetes on digital ocean cloud.
AATHITH RAJENDRAN
  • 4,689
  • 8
  • 34
  • 58
6
votes
2 answers

rpc error: code = Unavailable desc = connection closed in Go code

I am working on Dgraph and Go integration.I am trying to access Dgraph query in Go and for that I am using github.com/dgraph-io/dgo library. Here is the code : package main import ( "bytes" "context" "fmt" "io/ioutil" "log" …
rachana
  • 3,344
  • 7
  • 30
  • 49
5
votes
1 answer

How to filter data with nested object in GraphQL

query { comp(func: eq(dgraph.type,"ServiceTemplate")) { topologytemplate{ nodetemplates { name namespace @filter (eq(url,"a_url")){ url } } } } } Using…
5
votes
0 answers

Sveltekit - 500 process is not defined or exports is not defined

I'm trying to call a GRPC service (a dGraph api) from a Sveltekit (SvelteKit v1.0.0-next.114) application. I am using a writable store from svelte/store, and am able to log to the console the response from calling the GRPC service. However, we I…
Magick
  • 4,603
  • 22
  • 66
  • 103
4
votes
2 answers

Sharding a graph database

I was wondering how databases like Dgraph and TigerGraph managed to shard the graph in-order to support horizontal scaling without breaking the connections between nodes besides supports a lot of interesting algorithms. And they claim to be a…
Rawhi
  • 6,155
  • 8
  • 36
  • 57
3
votes
0 answers

Firebase Auth Emulator failing to sign JWT when using Dgraph Authentication

I am trying to find a good way to use the Firebase auth emulator and Dgraph. In Dgraph you send a JWT which contains claims that you can check in Dgraph to allow / limit queries and mutations. In the Dgraph schema you are required to add the below…
Charklewis
  • 4,427
  • 4
  • 31
  • 69
3
votes
1 answer

How to groupby and count dgraph

so with this Person, Company example: type Person { name: string work_for: [Company] } type Company { name: string work_for: [Person] } work_for: [uid] @reverse @count . name: string @index(fulltext, term) @count . What would a…
dweeb
  • 539
  • 2
  • 6
  • 21
3
votes
0 answers

Received trailing metadata size exceeds limit with .net core client . (Problem with GRPC)

I am new in Dgraph and i’m using .NET Core C# Client (https://github.com/MichaelJCompton/Dgraph-dotnet 1) to connect Dgraph Server, query and mutation data. I’m facing this problem: { ExceptionalError with…
Nguyễn Phi
  • 31
  • 1
  • 4
3
votes
1 answer

Unable to load bulk loaded data into Dgraph

I generated data from bulkloader using --reduce_shards=2 by following documentation at here This generates 2 p directories on which I ran alphas following this link Commands I used dgraph zero --my=IPADDR:5080 on top directory Then I cd to out…
Aishwat Singh
  • 4,331
  • 2
  • 26
  • 48
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
3
votes
1 answer

One Click Install - Dgraph - Gru

I installed dgraph gru for interviews go get github.com/dgraph-io/gru cd $GOPATH/src/github.com/dgraph-io/gru git checkout develop go build . && ./gru -user=admin -pass=pass -secret=0a45e5eGseF41o0719PJ39KljMK4F4v2 docker run -it -p…
Manjesh V
  • 1,230
  • 15
  • 22
2
votes
1 answer

How to delete all nodes with a given type?

https://dgraph.io/tour/schema/8/ shows some options for deleting Delete a single triple Delete all triples for a given edge Delete all triples for a given node Now i'd like to delete all triple for nodes of a given type. I assume this is done by…
Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
2
votes
0 answers

How I can make a mutation in Dgraph from a struct?

I'm trying to implement a Dgraph in Go. There's any way to send each struct to the database? My struct looks like this: type Comprador struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Age float64…
1
2 3 4 5 6 7 8