--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
WHERE NONE(n in nodes(path) WHERE n:_META_DATA OR (n)-[:_META_DATA] )MATCH path = (a)-[]-(b)-[]-(c)-[]-(a)
Am 03.03.2015 um 12:01 schrieb Martin Troup <trou...@gmail.com>:Let say I have couple nodes and relationships that I want to be hidden. It means when I query something, those will never be in the result. They are not supposed to be part or real data that I have in the database. I know there is no such thing as metadata implemented in Neo4j, but is there any way to avoid it?
This is what I have in mind. I would label those nodes and relationships with something like “_META_DATA”. Then I would receive user’s cypher query - for example:
MATCH (a)-[]-(b)-[]-(c)-[]-(a) RETURN a,b,c
and I would like to add “ignore all nodes and relationships that are labeled with “_META_DATA” so the cypher query would actually ignore those. So I would be looking for something like WHERE every_node and every_relationship NOT labeled “_META_DATA”.
Is there any way to solve this problem?
Thanks for the reply!