From 4ac07b2427562a52a4b3e5c1185116ed5e9b555a Mon Sep 17 00:00:00 2001 From: srfrog Date: Mon, 24 Sep 2018 17:02:26 -0700 Subject: [PATCH] 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 --- query/query.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/query/query.go b/query/query.go index fd03a9cad94..f4db33b45cd 100644 --- a/query/query.go +++ b/query/query.go @@ -1634,7 +1634,8 @@ func (sg *SubGraph) replaceVarInFunc() error { func (sg *SubGraph) ApplyIneqFunc() error { if sg.Params.uidToVal == nil { - return x.Errorf("Expected a valid value map. But got empty.") + x.Println("Expected a valid value map. But got empty.") + return nil } var typ types.TypeID for _, v := range sg.Params.uidToVal {