RedisGraph / redisgraph-py

RedisGraph python client
https://redisgraph.io
BSD 3-Clause "New" or "Revised" License
189 stars 49 forks source link

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

Closed mingen-pan closed 4 years ago

mingen-pan commented 4 years ago

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 commented 4 years ago

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

swilly22 commented 4 years ago

@mingen-pan thank you for contributing.