cancel
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.

2 REPLIES 2

tri
Node Link

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

 

david_allen
Neo4j
Neo4j

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
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.