apoc.agg.position Function APOC Full apoc.agg.position(element, value) - Returns index of the element that match the given value Signature apoc.agg.position(value :: ANY, element :: ANY) :: LONG Input parameters Name Type Default value ANY null element ANY null Usage Examples Given the following dataset: UNWIND range(0,20) AS id CREATE (:Person {id: 'index' + id}) we can execute: MATCH (n:Person) RETURN apoc.agg.position(n.id, 'index10') AS row Table 1. Results row 10