Skip to content
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

Request: Add id_property to the returned rels when exporting query results #1508

Open
Joshfindit opened this issue May 22, 2018 · 1 comment

Comments

@Joshfindit
Copy link

(Related to neo4jrb/neo4j-core#318 )

Additional information which could be helpful if relevant to your issue:

Code example (inline, gist, or repo)

results = Neo4j::ActiveBase.current_session.query("MATCH (n)-[r]-() RETURN n, r LIMIT 3")
results.to_json
... "r":{"id":2,"type":"RELATED","properties":{},"start_node_id":0,"end_node_id":2} ...

We cannot reconstruct the relationships with the output of to_json

Runtime information:

Neo4j database version: 3.1.1
neo4j gem version: 8.0.9
neo4j-core gem version: 7.0.6

@cheerfulstoic
Copy link
Contributor

This is related to the other general issue of making the id_property just like other attributes to ActiveModel. It absolutely should be done, though I think I would consider this a symptom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants