You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behaviour and actual result.
Query should return no results:
{
t as var(func: eq(my_id, "123")) @filter(has(test)) @cascade {
p as pred_test
}
query(func: eq(my_id, "123")) @filter(uid(t) AND eq(val(p), "my test")) {
expand(_all_)
}
}
Instead, this error appears: : Expected a valid value map. But got empty.
Modifying the query to be of this format returns the expected no results found:
{
t as var(func: eq(my_id, "123")) @filter(has(test)) @cascade {
p as pred_test
}
query(func: uid(t)) @filter(eq(my_id, "123") AND eq(val(p), "my test")) {
expand(_all_)
}
}
The text was updated successfully, but these errors were encountered:
When testing inequality value vars with non-matching values, the
response was sent as an error although it should return empty result
if the query has correct syntax.
Closes#2610
* An error was being returned when an empty response is expected.
When testing inequality value vars with non-matching values, the
response was sent as an error although it should return empty result
if the query has correct syntax.
Closes#2610
…ph-io#2611)
* An error was being returned when an empty response is expected.
When testing inequality value vars with non-matching values, the
response was sent as an error although it should return empty result
if the query has correct syntax.
Closesdgraph-io#2610
What version of Dgraph are you using?
dgraph:latest
Have you tried reproducing the issue with latest release?
Yes
Steps to reproduce the issue (command/config used to run Dgraph).
my_id
is indexed onexact
in schema. Performing this mutation:Query should return no results:
Instead, this error appears:
: Expected a valid value map. But got empty.
Modifying the query to be of this format returns the expected no results found:
The text was updated successfully, but these errors were encountered: