activegraph
activegraph copied to clipboard
Request: Add `id_property` to the returned rels when exporting query results
(Related to https://github.com/neo4jrb/neo4j-core/issues/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
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.