memgraph / gqlalchemy

GQLAlchemy is a library developed with the purpose of assisting in writing and running queries on Memgraph. GQLAlchemy supports high-level connection to Memgraph as well as modular query builder.
https://pypi.org/project/gqlalchemy/
Apache License 2.0
212 stars 29 forks source link

[BUG] When using Neo4j, the Node/Relationship object lost <id> value. #204

Open roidnishikawa opened 1 year ago

roidnishikawa commented 1 year ago

Hi, I'm using v1.3.2 with neo4j.

In neo4j we often use Ids that is based on data structure, not based on Neo4j structure to neo4j element. Neo4j-admin recommends use of these Ids like personId:ID, movieId:ID. https://neo4j.com/docs/operations-manual/current/tutorial/neo4j-admin-import/

If we assume below: Ids that is based on data structure = _id Ids that is based on Neo4j structure = \<id> In GqlAlchemy, object holds only _id value as id attribute. It seems set \<id> first, but set _id at last. But Relationship object indicates Node object with \<id>.

Please modify source code to object holds \<id> as id attribute and holds _id on other place.

BorisTasevski commented 1 year ago

Hi @roidnishikawa,

We will look into this.

Josipmrden commented 1 year ago

Put this task in the backlog.

roidnishikawa commented 1 year ago

Thank you.