File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ const fn =
16
16
/** Create a function with a name that takes a single argument */
17
17
const fn1 = ( name : string ) => ( arg : ExpressionInput ) => fn ( name ) ( arg ) ;
18
18
19
+ /** Create a function with a name that takes two arguments */
20
+ const fn2 = ( name : string ) => ( arg1 : ExpressionInput , arg2 : ExpressionInput ) =>
21
+ fn ( name ) ( arg1 , arg2 ) ;
22
+
19
23
const fn0 = ( name : string ) => ( ) => fn ( name ) ( ) ;
20
24
21
25
/**
@@ -78,6 +82,11 @@ export const apoc = {
78
82
coll : {
79
83
flatten : fn1 ( 'apoc.coll.flatten' ) ,
80
84
indexOf : fn ( 'apoc.coll.indexOf' ) ,
85
+ /**
86
+ * Returns the distinct union of the two given LIST<ANY> values.
87
+ * @see https://neo4j.com/docs/apoc/current/overview/apoc.coll/apoc.coll.union/
88
+ */
89
+ union : fn2 ( 'apoc.coll.union' ) ,
81
90
} ,
82
91
convert : {
83
92
/** Converts Neo4j node to object/map of the node's properties */
You can’t perform that action at this time.
0 commit comments