-
Notifications
You must be signed in to change notification settings - Fork 5
Literals
Marijn van Wezel edited this page Dec 12, 2022
·
5 revisions
You can use literals in your Cypher query by using the Query::literal helper function. In most cases, PHP literals are automatically converted to Cypher literals.
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();