TheDocumentation Index
Fetch the complete documentation index at: https://gql.ch/llms.txt
Use this file to discover all available pages before exploring further.
FILTER statement selects a subset of the records of the current working table. It updates the current working table to include only the records that satisfy the specified search condition. Compare this to the WHERE clause which allows selection of records during the MATCH phase. The FILTER statement is applied after the precending statements have been executed. As such, it is most useful in refining the results further by applying additional conditions.
FILTER clause is used to apply conditional filters on nodes, relationships, or properties after a pattern is matched. It supports standard logical operators like AND, OR, NOT, and comparison operators such as =, <, >, and IN.
FILTER is often paired with MATCH, but can also follow WITH to filter aggregated results.