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
2
votes
1 answer

Is it possible to add types for facets in a dgraph schema?

I have found that I need to specify predicate types as int in my schema or else numbers get stored as type float: MyNumericalProperty: int @index(int) . I have facets that are also numbers, and in the JSON returned from dgraph they appear like…
user888734
  • 3,797
  • 5
  • 36
  • 67
2
votes
1 answer

Elixir: Using Absinthe to query Dgraph, a graph database. GraphQL to GraphQL+ mapping

I am using Absinthe to build a GraphQL API. The datastore is Dgraph, which uses GraphQL+ as query language. It is similar to GraphQL but not identical. This would in theory put me in a wonderful situation. A GraphQL query like query { user { …
Ole Spaarmann
  • 15,845
  • 27
  • 98
  • 160
2
votes
1 answer

How to export DGraph database in a docker container (Windows)

I hope I was terse but specific enough at the title: What I am trying to do To export/backup the entire DGraph database.
2
votes
1 answer

Dgraph graph intersect

I have a GraphQL+- query in which I want to get mutual friends of two people. But I really couldn't find any option to use some sort of intersection of two graphs... can someone help me? Here is my code: { catarinas_friends(func: eq(name,…
MacakM
  • 1,804
  • 3
  • 23
  • 46
2
votes
1 answer

Dgraph: Deep graph traversal possible with recurse?

I have a couple of questions regarding the capabilities of Dgraph regarding graph traversal. Let's say we have a dataset that consists of nodes of the type post. Each post can have n posts that are replies to this post. The depth of this tree is…
Ole Spaarmann
  • 15,845
  • 27
  • 98
  • 160
2
votes
1 answer

Trouble starting dgraph with TLS

I'm trying to start a dgraph server with TLS enabled, my server config file is defined as following: # Folder in which to store exports. export: export # Fraction of dirty posting lists to commit every few seconds. gentlecommit: 0.33 # RAFT ID…
Paulo Ferreira
  • 423
  • 2
  • 8
  • 16
1
vote
1 answer

how to implement graphql with java with nebula graph like dgraph

I have a java project I have a nebula graph to save all my information I need to have graphql queries I implement it but we need a dynamic schema so we save our schema for any of dynamic entity types for example our users want to have dynamic…
saber tabatabaee yazdi
  • 4,404
  • 3
  • 42
  • 58
1
vote
0 answers

Firebase Auth token refresh not firing or not received in stream

I am having trouble getting the Firebase auth stream to work for a token refresh. I listen to a stream, and upon a token change, such as a token refresh, I want to trigger a function that updates the client link with the new headers. I need the…
alexn62
  • 51
  • 7
1
vote
1 answer

HTTP requests: golang with graphQL?

We are using slash graphql and I can write basic queries like: query{ queryUser{ user{ username} } } jsonData := `{ query: { queryUser { username } …
Dhairya Verma
  • 661
  • 1
  • 9
  • 15
1
vote
0 answers

TLS Enabled dgraph server using c# StatusCode=Unavailable, Detail="Empty update" grpc exception

I am trying to connect tls enabled dgraph server using c# .net for that I have written below console application class DGraphClient { public IDgraphClient GetDgraphClient() { …
1
vote
0 answers

How to properly append to an array using Dgraph GraphQL API?

I'm trying to spin up Dgraph, but appears as though to add a node to an array of nodes using the GraphQL api requires an unnecessary amount of work if I understand it correctly: I have the following simplified schema: type User @secret(field:…
Adrian Coutsoftides
  • 1,203
  • 1
  • 16
  • 38
1
vote
1 answer

Absinthe result has all null values

I'm totally new to Elixir, Phoenix, and Absinthe...so go easy on me. :) I'm experimenting with a graph database called Dgraph using a library called Dlex. I've written a simple query designed to look up and return a list of users (I only have two…
Rob Johansen
  • 5,076
  • 10
  • 40
  • 72
1
vote
1 answer

Port forwarding with Traefik on docker v2.2

I have a service running on port 8080 that accepts both http and gRPC. I understand that there are some limitations with gRPC in traefik, so here is the ultimate goal. Accept ipWhitelisted traffic on port 8080 Accept traffic from :80 /graphql and…
amaster
  • 1,915
  • 5
  • 25
  • 51
1
vote
1 answer

Serializing and deserializing LocalDateTime into JSON in RFC 3339 format in java with Gson

I am currently trying to store some database objects which contain timestamps into a graphical database (dgraph). I would like to use JSON to easily take date and time information and store it in a datetime node in the graph, but the graph will only…
nootroot
  • 11
  • 1
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…