Verify Cypher NOT IN syntax in neo4j-kg
Validates
Confirms correct Cypher syntax for type exclusion. Use this form in all new queries: NOT (type(r) IN [...]) not type(r) NOT IN [...].
Assertion Value
type(r)
Expected Output
Returns 1 row without parse error. Confirms NOT (...IN [...]) form is accepted by this Neo4j version.
Script
cypher-shell -a bolt://localhost:7688 -u neo4j -p "$NEO4J_KG_PASSWORD" "MATCH ()-[r]->() WHERE NOT (type(r) IN ['MENTIONS']) RETURN type(r) LIMIT 1"
Run Tool
Run History
No runs yet