Prev |  | Next

## 15.24. Compatibility

Cypher is still changing rather rapidly. Parts of the changes are internal — we add new pattern matchers, aggregators and other optimizations, which hopefully makes your queries run faster.

Other changes are directly visible to our users — the syntax is still changing. New concepts are being added and old ones changed to fit into new possibilities. To guard you from having to keep up with our syntax changes, Cypher allows you to use an older parser, but still gain the speed from new optimizations.

There are two ways you can select which parser to use. You can configure your database with the configuration parameter `cypher_parser_version`, and enter which parser you’d like to use (1.6, 1.7 and 1.8 are supported now). Any Cypher query that doesn’t explicitly say anything else, will get the parser you have configured.

The other way is on a query by query basis. By simply pre-pending your query with `"CYPHER 1.6"`, that particular query will be parsed with the 1.6 version of the parser. Example:

    CYPHER 1.6 START n=node(0)
    WHERE n.foo = "bar"
    RETURN n

Copyright © 2013 Neo Technology

Prev | Up | Next
| Home |