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

provide a direct way to access node's id instead of from edge's _dst #1758

Closed
whitewum opened this issue Feb 12, 2020 · 2 comments
Closed

provide a direct way to access node's id instead of from edge's _dst #1758

whitewum opened this issue Feb 12, 2020 · 2 comments

Comments

@whitewum
Copy link
Contributor

whitewum commented Feb 12, 2020

I know i can fetch destination nodes' id by so called _dst from the edge.
But it is indirect and a bit strange ( to get a node id from the edge).
It is better to be done by the optimizer than a new concept introduced to the user .

E.g. I prefer to get (v)id like this:

GO FROM $personId OVER person_isLocatedIn_place YIELD \
   id($$.place) AS place'vid  -- id() is cypher sytle

rather than

GO FROM $personId OVER person_isLocatedIn_place YIELD \
person_isLocatedIn_place._dst AS place'vid
@Amber1990Zhang
Copy link
Contributor

One question here, how do you know that the in edge is pointed to the place type vertex? Do I have to DEXCRIBDE EDGE before the query if I'm not familiar with the schema?

@CPWstatic
Copy link
Contributor

Please track it with #2594 .

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

3 participants