<p dir="auto">If you run a cypher like this in 2-M05:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="START n=node(1)
RETURN HEAD(LABELS(n))"><pre class="notranslate"><code class="notranslate">START n=node(1)
RETURN HEAD(LABELS(n))
</code></pre></div>
<p dir="auto">you get a syntax error, saying that it expected a collection, but getting a boolean. This worked fine in M04 and previous.</p>
<p dir="auto">There seems to be a breaking change in new cypher parser, which now incorrectly parses:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="START node=node(*) 
WHERE ANY (label in LABELS(node) WHERE label IN ['mylabel'])
RETURN node"><pre class="notranslate"><code class="notranslate">START node=node(*) 
WHERE ANY (label in LABELS(node) WHERE label IN ['mylabel'])
RETURN node
</code></pre></div>
<p dir="auto">with error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Type mismatch: expected Collection&lt;Any&gt; but was Boolean (line 1, column 40)
&quot;START node=node(*) WHERE ANY (label IN LABELS(node) WHERE label IN ['mylabel']) RETURN node&quot;
                                        ^"><pre class="notranslate"><code class="notranslate">Error: Type mismatch: expected Collection&lt;Any&gt; but was Boolean (line 1, column 40)
"START node=node(*) WHERE ANY (label IN LABELS(node) WHERE label IN ['mylabel']) RETURN node"
                                        ^
</code></pre></div>
<p dir="auto">You can also see this here: <a href="http://console-test.neo4j.org/r/scx0j4" rel="nofollow">http://console-test.neo4j.org/r/scx0j4</a></p>
<p dir="auto">This was first reported in a SO question: <a href="http://stackoverflow.com/questions/18746605/neo4j-2-0-0-m05-cypher-changes-in-function-predicates-by-labels" rel="nofollow">http://stackoverflow.com/questions/18746605/neo4j-2-0-0-m05-cypher-changes-in-function-predicates-by-labels</a>.</p>