Question:
What is the currently acceptable syntax for sending aCREATE
script from Node.js to Neo4j in 2022 and after?I am getting several errors trying to pass in dynamic props from form input fields.
I need to create a new record from my form inputs using Node.js.
This is an example of a syntax that is no longer accepted:
Answer:
The syntax you’re using is deprecated. Parameters are now identified with the dollar symbol$
instead of curly brackets {}
. That means you need to update your query to:If you have better answer, please add a comment about this, thank you!