I'm using spring data neo4j. I want to return custom type map from cypher. But I'm not able to bind in repository class. What I can use for custom return type(Which is not of Domain class or Entity class).
You could use the Neo4jClient. It doesn't use entities, but queries directly and you extract the data as needed.
https://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#neo4j-client