I have 2 type of nodes. The first type have the :Schema
label. The second type have both :Root
and :Schema
labels. I want to write a cypher that will match only the first type (containing only the :Schema
label).
I have tried this:
MATCH (s:Schema) return s;
Which return the two types. Also getting the second type is easy, you just use
MATCH (s:Schema:Root) return s;
So, what's the proper cypher to match nodes with exactly the requested label?