Skip to content

Commit b817323

Browse files
committed
Add alternative to apoc deprecation
1 parent a9af397 commit b817323

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.changeset/lazy-buckets-peel.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ Deprecate apoc functions and procedures. These will no longer be supported in ve
99
- `apoc.util.validatePredicate`
1010
- `apoc.cypher.runFirstColumnMany`
1111
- `apoc.cypher.runFirstColumnSingle`
12+
13+
These can still be used by using the `Function` class directly:
14+
15+
```js
16+
const convertFormat = new Cypher.Function("apoc.date.convertFormat", [
17+
new Cypher.Variable(),
18+
new Cypher.Literal("iso_zoned_date_time"),
19+
new Cypher.Literal("iso_offset_date_time"),
20+
]);
21+
```

docs/modules/ROOT/pages/functions.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ In some cases, you may need to use functions that are not available in Cypher Bu
4646
For instance, if you are using plugins or some of the newest features of Neo4j.
4747

4848
For these cases, you can use the class `Function` to create custom functions.
49-
This example calls link:https://neo4j.com/docs/cypher-manual/current/functions/mathematical-numeric/#functions-isnan[`isNan`] as a custom function:
49+
This example calls an arbitrary function `myFunction`:
5050

5151
[source, javascript]
5252
----

0 commit comments

Comments
 (0)