# Custome return type in spring data neo4j

**URL:** <https://community.neo4j.com/t/custome-return-type-in-spring-data-neo4j/58960>\
**Category:** Neo4j Graph Platform\
**Tags:** migrated\
**Created:** [November 14, 2022, 3:36pm UTC](https://community.neo4j.com/t/custome-return-type-in-spring-data-neo4j/58960 "2022-11-14T15:36:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Yadav](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/amit_yadav/32/32639_2.png) [@Amit\_Yadav](https://community.neo4j.com/u/Amit_Yadav)\
**Post date:** [November 14, 2022, 3:36pm UTC](https://community.neo4j.com/t/custome-return-type-in-spring-data-neo4j/58960/1 "2022-11-14T15:36:30Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [November 14, 2022, 5:01pm UTC](https://community.neo4j.com/t/custome-return-type-in-spring-data-neo4j/58960/2 "2022-11-14T17:01:43Z")

</div>

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](https://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#neo4j-client)
