Have you tried reproducing the issue with the latest release?
No.
Steps to reproduce the issue (paste the query/schema if possible)
type Person {
id: ID
name: String!
}
type Post {
id: ID
title: String
}
Expected behaviour and actual result.
{
__type(name: "Person") {
name
}
}
should return the same results mapped to a different alias as:
{
Person:__type(name: "Person") {
name
}
}
But instead the latter returns null.
This prevents one from doing the following query:
{
Person:__type(name: "Person") {
...typeInfo
}
Post:__type(name: "Post") {
...typeInfo
}
}
fragment typeInfo on __Type {
name
fields {
name
type {
kind
name
ofType {
kind
name
}
}
}
}
Which should be a valid schema introspection query.
Hi @verneleem, it’s working on master and 21.03 releases branch. I guess it’s a bug that’s fixed recently.
So,this fix will be reflected in Slash after release 21.03 which is happening this month only.
Dgraph Cloud is not running a version with these changes merged.
When is 21.03 going to be live on Dgraph Cloud? I also get errors trying to use dgraph/dgraph:master or dgraph/dgraph:v21.03 with Docker Compose, so I cannot even develop locally while working around this issue.
or you can use dgraph standalone version. docker run --rm -it -p "8080:8080" -p "9080:9080" -p "8000:8000" -v ~/dgraph:/dgraph "dgraph/standalone:v21.03.0"
Starting local Dgraph server with Docker.
[sudo] password for christian:
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Removing backend_ratel_1
backend_zero_1 is up-to-date
backend_alpha_1 is up-to-date
Recreating 3f44c5b60f05_backend_ratel_1 ... error
ERROR: for 3f44c5b60f05_backend_ratel_1 Cannot start service ratel: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "dgraph-ratel": executable file not found in $PATH: unknown
ERROR: for ratel Cannot start service ratel: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "dgraph-ratel": executable file not found in $PATH: unknown
Looking into this, I see Ratel was removed from this docker image, so I can remove that service. But now I’m getting errors about the --whitelist flag. Edit: Resolved by replacing --whitespace 0.0.0.0/0 with --security whitespace=0.0.0.0/0.