hubmapconsortium / ingest-api

MIT License
0 stars 0 forks source link

Fix Result object has no attribute fetch #546

Closed ChuckKollar closed 5 months ago

ChuckKollar commented 5 months ago

It appears that the neo4j Result object does not have a .fetch(n) method so I returned a list of dictionaries., so I returned a list of dictionaries by hand.

yuanzhou commented 5 months ago

Note:

SenNet has been using the latest Neo4j Python driver v5 rather than the matching v4 driver (they are still using Neo4j v4.x server) due to the ingest-api installed https://github.com/x-atlas-consortia/commons/blob/main/requirements.txt#L6

That .fetch() method is introduced in Neo4j Python driver v5: https://neo4j.com/docs/api/python-driver/current/api.html#neo4j.Result.fetch

HuBMAP APIs only use Neo4j v4 server and matching Python driver v4 currently.