Skip to content

Commit be84308

Browse files
author
Pierre F
committed
added elementid() (uses ID())
1 parent 44d0c39 commit be84308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/src/main/java/com/arcadedb/query/opencypher/executor/CypherFunctionFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private StatelessFunction getOrCreateCustomFunctionAdapter(final String function
205205
private boolean isCypherSpecificFunction(final String functionName) {
206206
return switch (functionName) {
207207
// Graph functions
208-
case "id", "labels", "type", "keys", "properties", "startnode", "endnode" -> true;
208+
case "id", "elementid", "labels", "type", "keys", "properties", "startnode", "endnode" -> true;
209209
// Path functions
210210
case "nodes", "relationships", "length" -> true;
211211
// Math functions
@@ -304,7 +304,7 @@ private StatelessFunction createCypherSpecificExecutor(final String functionName
304304
// General functions
305305
case "coalesce" -> new CoalesceFunction();
306306
// Graph functions
307-
case "id" -> new IdFunction();
307+
case "id", "elementid" -> new IdFunction();
308308
case "labels" -> new LabelsFunction();
309309
case "type" -> new TypeFunction();
310310
case "keys" -> new KeysFunction();

0 commit comments

Comments
 (0)