I’m running a local instance of DGraph 1.2.0 with 4gb RAM.
I’m currently facing a strange behaviour filtering data.
The schema i’m working with is:
type Company {
…
company.involvement [uid]: CompanyInvolvement
…
}
type CompanyInvolvement{
…
involvement.role string @index(exact)
…
}
Running the query:
{
f(func:eq(name@.,"Crunchyroll")) {
company.involvement {
involvement.role
}
uid
name@.
}
}
i got all the involvement of the company as expected
and as the screen shows, the company do have AT LEAST one company.involvement with involvement.role = “internet_streaming”
But running the same query with a filter applied
{
f(func:eq(name@.,"Crunchyroll")) {
company.involvement @filter(eq(involvement.role, "internet_streaming")){
involvement.role
}
uid
name@.
}
}
it does not returns any node
and even more strange, if i change the filter with another role (EG: online_distribution) the query runs properly
EDIT:
by running the filter at root
{
f(func:eq(involvement.role,"internet_streaming")) {
involvement.role
}
}
the query returns the expected result
additional information:
the db has 360804 node with the attribute involvement.role