Skip to content

Cannot use Graph module with redis.asyncio #2116

Closed
@DurandA

Description

@DurandA

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions