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

Migrate to using elementId #84

Merged
merged 3 commits into from
Sep 12, 2023

Conversation

robsdedude
Copy link
Contributor

The cypher function id has been deprecated since Neo4j 5.0. This PR adds the capability of sniffing the DBMS version so that the DiffService can write an update query that matches the server version.

Likewise has entity.id() in the driver been deprecated. The driver will set elementId to id.toString() if the server does not provide it (4.4 and before). Therefore, it's safe to always use entity.elementId() regardless of the server version.

The cypher function `id` has been deprecated since Neo4j 5.0.
This PR adds the capability of sniffing the DBMS version so that the DiffService
can write an update query that matches the server version.

Likewise has `entity.id()` in the driver been deprecated. The driver will set
`elementId` to `id.toString()` if the server does not provide it (4.4 and
before). Therefore, it's safe to always use `entity.elementId()` regardless of
the server version.
@albertoventurini
Copy link
Owner

Thank you for this @robsdedude, great work!

@albertoventurini albertoventurini merged commit f20d96e into albertoventurini:main Sep 12, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants