Closed daniel-j-h closed 4 years ago
@daniel-j-h correct, this is indeed a syntax error, labels are specified as unquoted strings.
Is there a reference for the allowed syntax somewhere?
Should the client check the label conforming to the allowed syntax?
https://neo4j.com/docs/cypher-manual/current/syntax/naming/ I think a syntax error is sufficient in this case.
Even though the Node constructor accepts
str
objects for node labels, it looks like for some reason stringified numbers result in syntax errors.Reproducible with
and
redisgraph==1.7
from pipresults in
The workaround is to use character pre- and post-fixed labels such as
a-123-b
. Ugly but works. This looks like a parser / syntax problem.Where can I find details on what is allowed and what is not currently? Should the Python client warn or even assert before users run into this? It's pretty hard to debug on the user's side.