RedisGraph / redisgraph-py

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

Add multi label support #145

Open AviAvni opened 2 years ago

AviAvni commented 2 years ago

Latest version of RedisGraph support node with multiple labels this needs to be reflected in the client when creating a node and when parsing a result that contains node

MelomanCool commented 2 years ago

It seems that the support was added in #144?

I've also noticed this condition, which should probably be updated too. https://github.com/RedisGraph/redisgraph-py/blob/e212cd434c842d7d5412015e1d578e9eacdf2430/redisgraph/node.py#L58

Looks like this would be pretty easy to fix. I think just changing from label to labels would do the trick.

I don't mind creating a PR. There probably should also be a test for this case?

Edit: fixed in #159

By the way, thank you for your amazing work on RedisGraph! It's been very easy to get started with it. Love the simplicity, but it is also quite powerful and seems to be constantly improving! :smiley: