Showing results for 
Search instead for 
Did you mean: 

Double curly braces

Why do we use double curly braces here?

Other examples in the tutorial use single curly braces.

I feel confused even after reading the explanation saying that "Braces need to be escaped within a Python string, and we do this by using double quotes."
How do we know whether it is a Python string or not? Since almost all the commands in this tutorial is run by python like the one below.


Node Link

I think the reason is related to the format keyword after the Cypher clause.



Which tutorial are you referring to?

I think this can get confusing because braces are needed for Cypher, but they also have special meaning inside of a python multi-line string.   The double-brace example you gave doesn't look correct to my eye.  The specifics depend on what you're trying to do and which tutorial being followed.

Nodes 2022
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.