-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidSyntax: Invalid input '{': expected whitespace, comment or a label name #56
Comments
I've been able to diagnose this a little. If a nested JSON document has its own |
Thanks @mohummedalee for reporting this. Neo4j Doc Manager uses a key naming convention of However, this brings up another issue with the way Neo4j Doc Manager is handling node properties. When converting to a property graph model, each subdocument is extracted out into a node but keeps the |
Hi @johnymontana. Conventionally, a lot of people use the |
If a subdocument contains an _id property, do not treat it as a reference/relationship, instead ignore the _id property as the _id from the root level document should take precedence. See #56
Thanks for the feedback @mohummedalee Commit 8d8aab2 should solve the Cypher syntax error you experienced. Regarding the collision of |
This fix is now available in the 0.1.1 version on PyPi. |
I added a proposal for the behavior when encountering a subdocument |
Sorry for replying late @johnymontana, after reviewing a bit of the architecture, we realized at my company that we needed to model relationships in a custom way. So we ended up writing our own DocManager taking help from your code (which is pretty well written thankfully). Are you saying you're ignoring the subdocument |
CALL gds.alpha.eigenvector.stream error: |
I am using
mongo-connector
to do the initialbulk_upsert
operation between MongoDB and Neo4J. At some point while querying withpy2neo
, theInvalidSyntax
exception is occurring due to which nothing is being inserted into graph database. I believe the issue lies somewhere in theDocManager
during syntax translations (which is why I'm raising the issue here). I am runningpy2neo v2.0.8
andNeo4J v2.3.1
.Here is the detailed stack trace:
This is the first time I'm raising an issue on Git so please go easy on me :)
The text was updated successfully, but these errors were encountered: