Skip to content

Literals

Marijn van Wezel edited this page Oct 13, 2021 · 5 revisions

You can use literals in your Cypher query by using the Query::literal helper function.

Examples

To use the number 10 in your query:

$ten = Query::literal(10);

To use the string foobar in your query:

$foobar = Query::literal("foobar");

To use double quotes in your string:

$foobar = Query::literal("foobar")->useDoubleQuotes();
Clone this wiki locally