[Neo4j] cypher question - subqueries possible?
peter.neubauer at neotechnology.com
Tue Nov 29 00:12:41 CET 2011
got a graph picture on this?
Phone +46 704 106975
http://www.neo4j.org - NOSQL for the Enterprise.
http://startupbootcamp.org/ - Öresund - Innovation happens HERE.
On Mon, Nov 28, 2011 at 11:48 PM, jschweigl <johann.schweigl at gmail.com>wrote:
> Hi all,
> I have three kinds of nodes A, B and C. Both type A and B (distinguished by
> a property) have a relationship of the same type to node type C. I want to
> find nodes C which have a relationship to A but not to B.
> The only idea I came up with is to have a query return all A nodes having a
> relationship to C as a START nodeset and then count B nodes having a
> relationship to the nodes from the set with count 0. But as START only
> accepts node id or index queries, that's not possible.
> Do you plan to include set operations in cypher? UNION and INTERSECTION of
> query results would also be an approach.
> Or, even better, is there a solution using current language features? I'm
> still quite new to the topic, so I might have missed something.
> View this message in context:
> Sent from the Neo4j Community Discussions mailing list archive at
> Neo4j mailing list
> User at lists.neo4j.org
More information about the User