I would very probably put a filter in my client processing or write a server 
extension that takes care of it before returning the data.

Alternatively you can look into a system like structr.org on top of Neo4j  
which has schema support and also data level security and handles such things 
automatically for you.

Also note that your user level cypher queries are super unspecifc cross 
products across the whole graph and are likely to perform very badly.

Michael


> Am 03.03.2015 um 12:01 schrieb Martin Troup <[email protected]>:
> 
> 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!
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to