Skip to content

Edge can be str() after returning from QueryResult #59

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

Merged
merged 5 commits into from
Dec 23, 2019

Conversation

mingen-pan
Copy link
Contributor

The original code does not support str() of Edge if the src_node and dest_node fields are not Node. However, the Edge returned from the query have int values in both src_node and dest_node fields.

I modify __str__(), so that it will print () if the src_node and dest_node are not Node instances.

This PR is developed based on my last PR request #58 .

@mingen-pan
Copy link
Contributor Author

@swilly22 I have updated this PR to the latest version.

@mingen-pan mingen-pan requested a review from swilly22 December 22, 2019 20:21
@swilly22
Copy link
Contributor

@mingen-pan thank you for contributing.

@swilly22 swilly22 merged commit a611fdd into RedisGraph:master Dec 23, 2019
@mingen-pan mingen-pan deleted the pr_20191120 branch December 24, 2019 03:34
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

Successfully merging this pull request may close these issues.

2 participants