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

fix: get srcId when path has no relationship #114

Merged
merged 1 commit into from
May 18, 2022

Conversation

hetao92
Copy link
Contributor

@hetao92 hetao92 commented May 18, 2022

No description provided.

@@ -161,6 +161,10 @@ func getPathInfo(valWarp *wrapper.ValueWrapper, data map[string]types.Any) (map[
_relationships = append(_relationships, _relation)
}
data["relationships"] = _relationships
if len(relationships) == 0 {
startNode := path.GetNodes()[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible that the number of elements return by GetNodes is less than 1 .

Copy link
Contributor

@veezhang veezhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

2 participants