cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Generic Execution of Cypher Statetments

Hello , i am new to Cypher.

Is there something similar like Oracle EXECUTE IMMEDIATE to generate generic statements ?

Thanks br

1 REPLY 1

@promotion

This statement seems very similar to apoc.cypher.doIt and apoc.cypher.run,
present in the Apoc procedures.

For example you can do:

// .. query before
CALL apoc.cypher.run('RETURN $a + 7 as b', {a:3})
// .. query after

where RETURN $a + 7 as b is the string statement and a: 3 is the $a parameter.
The apoc.cypher.doIt is equal to apoc.cypher.run but you can also run write statements.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online