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

Cannot use Graph module with redis.asyncio #2116

Closed
DurandA opened this issue Apr 21, 2022 · 2 comments
Closed

Cannot use Graph module with redis.asyncio #2116

DurandA opened this issue Apr 21, 2022 · 2 comments

Comments

@DurandA
Copy link

DurandA commented Apr 21, 2022

Version: 4.2.2

Platform: Python 3.8.10 on Ubuntu 20.04

Description: the Graph module does not seem to support async yet. Here is an example which throws TypeError: 'coroutine' object is not subscriptable:

import redis.asyncio as redis

r = redis.Redis()
graph = r.graph()

query = (
    'MATCH (p:person)-[v:visited {purpose:"pleasure"}]->(c:country) '
    "RETURN p, v, c"
)

result = await graph.query(query)
@DurandA DurandA changed the title Cannot use Graph module with redis.async Cannot use Graph module with redis.asyncio Apr 21, 2022
@HorizonXP
Copy link

Same is true for some of the commands in Search module, like FT.AGGREGATE

@dvora-h
Copy link
Collaborator

dvora-h commented Aug 3, 2022

#2273
#2096

@dvora-h dvora-h closed this as completed Aug 3, 2022
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