...
1FOR doc IN @@coll
2 FILTER doc.value >= @val && doc["value"] < COUNT ([.1, FALSE])
3 COLLECT ´v a l´ /* legal! */ = doc.value WITH COUNT INTO count // blarg
4 RETURN MERGE(doc, { [CONCAT("new", 0.125)]: true } )
5
6LET arr = [[1,2],3,[0]]
7RETURN arr[** FILTER CURRENT % 2 == 0 RETURN CURRENT||null]
8
9FOR v,e,p IN 2..4 OUTBOUND "components/S" GRAPH "g"
10 PRUNE e != null AND p.edges[-1].text =~ @AND
11 OPTIONS { vertexCollections: ['components'] }
12 RETURN v.´sort´ ?: 0xBEEF
View as plain text