GH-2669 - Don't query for internally generated id.

This is unnecessary because the property itself won't exist in this case,
but only id(node).
More visible now because Neo4j 5+ logs unknown property querying.

Closes #2669
This commit is contained in:
Gerrit Meier
2023-02-14 13:53:34 +01:00
parent 28e051b539
commit 4a2282c584

View File

@@ -735,6 +735,10 @@ public enum CypherGenerator {
continue;
}
// ignore internally generated id fields
if (graphProperty.isIdProperty() && (nodeDescription.getIdDescription() != null && nodeDescription.getIdDescription().isInternallyGeneratedId())) {
continue;
}
nodePropertiesProjection.add(graphProperty.getPropertyName());
}