Three files:
schema.gql
contains the type definitions I inserted into dgraph.seed.rdf
contains the set definition used to populate the database with associated information.query.gql
contains the dql query I'm trying to execute based on the examples...
When I run the query I get no results back. I've tried this at all sorts of different parts of the simple tree. Can't get any information anywhere. Can see data stored in the system just can't access it. Docs to the system aren't great. They reference a lot of things that seem deprecated / unavailable and the server doesn't return super useful error messages. (e.g. "undefined directive index" and yet, they use it everywhere.)
Version information
docker - dgraph/dgraph:latest
Dgraph version : v21.03.0
Dgraph codename : rocket
Dgraph SHA-256 : b4e4c77011e2938e9da197395dbce91d0c6ebb83d383b190f5b70201836a773f
Commit SHA-1 : a77bbe8ae
Commit timestamp : 2021-04-07 21:36:38 +0530
Branch : HEAD
Go version : go1.16.2
jemalloc enabled : true
For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit https://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit https://dgraph.io/cloud.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.
docker - dgraph/ratel:latest
Ratel Version: 20.7.0
Commit ID:
Commit Info:
If you want to run your
seed.rdf
DQL mutation in Ratel, then you'd need to tweak your mutation a bit. Here's what you'd need to change in your mutation:cloud.regions
field needs to be setregion.zones
needs to be setAnd here's the full copy for convenience:
Similarly, for your DQL query, need to use the correct names for your query to return the data. The naming convention here stems from your GraphQL schema and follows the rules documented in the GraphQL to DQL schema mapping: https://dgraph.io/docs/graphql/dgraph/
And the full query:
Query response: