I’m learning dgraph. I have a schema with
- Predicate: ContactEmailAddress.email
- Type: string
- Indices: term
If I execute the following query in Ratel:
query {
test(func: type(ContactEmailAddress)) {
uid
email
}
}
I see a graph containing a node with uid: "0x2726"
and email: "test@example.com"
.
If I execute the following query in Ratel:
query {
test(func: eq(ContactEmailAddress.email, "test@example.com")) {
uid
email
}
}
Then I see nothing. The query executes without error, but nothing is returned. Why? By my reading of the docs, this seems like a very straightforward usage of the eq
function. I expect the second query to return the same result as the first query (in this case).
Edit:
I’m using the dgraph/standalone
docker image as listed in the DQL getting started guide.