We have recently switched to using the coll.flatten function instead of apoc.coll.flatten due to the deprecation of the latter in Neo4j version 2026.01.4. However, when we use coll.flatten to flatten a list and then attempt to filter and construct some values using [] we are encountering issues.
Invalid input 'ANY' for nameData. Expected to be MAP, NODE, RELATIONSHIP, POINT, DURATION, DATE, ZONED TIME, LOCAL TIME, LOCAL DATETIME or ZONED DATETIME. (line 1, column 94 (offset: 93))
