Add option addFieldFilter([]) to the QueryBuilder
Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
parent
4de01cfcb8
commit
b400c08211
5 changed files with 63 additions and 9 deletions
|
|
@ -22,4 +22,13 @@ final class FilterFunctionTest extends TestCase
|
|||
|
||||
$this->assertEquals($expression->__toString(), $query);
|
||||
}
|
||||
|
||||
public function testFieldFilter()
|
||||
{
|
||||
$expression = new Filter(['user', 'field2', 'field3']);
|
||||
|
||||
$query = '|> filter(fn: (r) => r._field == "user" or r._field == "field2" or r._field == "field3") ';
|
||||
|
||||
$this->assertEquals($expression->__toString(), $query);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue