Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-28-2021 03:16 PM
I'm trying to use a property (k.rule) that holds an expression to be evaluated as true/false. When I pass it into the function toBoolean, I get a null result. If I type it directly into the function, I get the expected result.
match (Size:Question {name: "Size"}),(height_adjustment:Question {name: "Height Adjustment"}),( question {name: "Height Adjustment"})-[k:HAS_OPTION]-(options) return question.name,options.name,Size.answer,k.rule,toBoolean(Size.answer = "a size"),toBoolean(k.rule)
I want toBooolean(k.rule) to evaluate the same as the typed in value toBoolean(Size.answer = "a size").
Any hints are appreciated.
07-02-2021 03:55 PM
that doesn't work with toBoolean() you can probably use the function apoc.cypher.runFistColumn("return "+k.rule, {... params ..})
All the sessions of the conference are now available online