How to programmatically add constraints to Neo4J Cypher queries -
i writing sever plugin neo4j. plugin receives cypher query, , executes it. currently, implementation uses cypherexecutor
.
i need further constrain results. (for example, imagine results need filtered acls.)
one approach filter results after executing query. i'd rather not this, performance reasons other limitations (for example, aggregate results wrong.)
i considered adding constraints query itself. i've looked @ command.abstractquery
subclasses produced using cypherparser
. object model immutable.
i wondering whether need resort cloning neo4j's executionengine , cyphercompiler, extend executionplanbuilder... avoid option if @ possible.
any recommendations how can done?
in case, trying simulate multiple isolated graphs. ok how might modeled -- whether add 'tenantid' each node, or maintain tenant node , add (:tenant)<-[:scopedto]-(n)
relationships every node.
Comments
Post a Comment