Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-04-2021 05:35 AM
This code will cause error.
n = NodeMatcher(g)
node= Node("Person", age= 20)
g.create(node)
node = n.match("Person").where(age=20).first()
ClientError : SyntaxError: Invalid input '{': expected "+" or "-" (line 1, column 32 (offset: 31)) "MATCH (_:Person) WHERE _.age = {1} RETURN _"
10-05-2021 03:50 AM
Looks like what's written in the docs. Are you running on the latest version of py2neo? If not, try updating it. Else, this might be a bug worth opening an issue for on py2neo's GitHub page.
I am especially confused about WHERE _.age = {1}
being in the query while you query for age
to be 20
.
10-05-2021 03:53 AM
Oh wait. Looks like a format sting that got not properly populated
10-05-2021 04:42 AM
Thanks for helping!
I'm currently using the 4.2 version, I could upgrade to the latest version, but then it will face another error of "OverflowError: mktime argument out of range" when import Graph.
So I think this cannot help
10-22-2021 07:33 AM
I'm still not deeply involved in py2neo, but it looks like the OverflowError
has been resolved Getting 'OverflowError: mktime argument out of range' while importing the database module from lates... Maybe, an upgrade is viable now.
All the sessions of the conference are now available online