Skip to content

Error using Cypher to get by id #136

@njss

Description

@njss

I allways receive an error in pytho n(spyder) executing this:

q = "match (u:User {id:1})-[:OWN]->()<-[:OWN]-(other) return other.name, count() order by count() desc limit 5"
results = db.query(q, returns=(client.Node, str, client.Node))

ERROR

File "C:\Anaconda3\lib\site-packages\neo4jrestclient\query.py", line 714, in cast_element
obj = func(element["self"], update_dict=element,

TypeError: string indices must be integers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions