@auth rule with (inner) OR condition fails if an empty list is given as variable

Hi @amaster507,

I’ve just tested, and indeed, when the NAMES variable is an empty list, the same error is thrown ( eq expects atleast 1 argument, but, interestingly, when the variable is not provided at all, this time an error is thrown, not like the case with the @auth rule.

Here is the error :

  "errors": [
    {
      "message": "Dgraph query failed because Dgraph execution failed because Invalid filter statement",
      "path": [
        "queryDelta"
      ]
    }
  ]