-
Notifications
You must be signed in to change notification settings - Fork 80
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
Feature request: Return same ID type for node and relationship #318
Comments
I would love to be able to use the built-in Neo4j ID for the We specifically avoided using something like a Does that make sense? I'm open to other suggestions |
No, that definitely makes sense; the Neo4j ID is best considered transient. The main problem this request is trying to solve is that the nodes do not return the Neo4j ID, and the relationships don't return any other ID. This means that the output of a raw query cannot be used to reconstruct the relationships. |
Essentially; This is not great but ok:
This is better:
And this is no good:
|
When querying directly with CYPHER, on a node type with an alternate ID (such as
UUID
) the node returnsuuid
by default, but the relationship returns the internal Neo4jID
.The request is: either have the node include the Neo4j
ID
, or (the better solution if we are looking to avoid referencing transient Neo4jID
s) have the relationship include the node's config-specifiedID
Code example (inline, gist, or repo)
Runtime information:
Neo4j database version:
3.1.1
neo4j
gem version:8.0.9
neo4j-core
gem version:7.0.6
The text was updated successfully, but these errors were encountered: