# What is the default query depth for SDN 6 repository queries?

**URL:** <https://community.neo4j.com/t/what-is-the-default-query-depth-for-sdn-6-repository-queries/28837>\
**Category:** Spring Data Neo4j & Neo4j-OGM\
**Created:** [November 11, 2020, 4:40pm UTC](https://community.neo4j.com/t/what-is-the-default-query-depth-for-sdn-6-repository-queries/28837 "2020-11-11T16:40:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin.lachance](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/martin.lachance/32/3913_2.png) [@martin.lachance](https://community.neo4j.com/u/martin.lachance)\
**Post date:** [November 11, 2020, 4:40pm UTC](https://community.neo4j.com/t/what-is-the-default-query-depth-for-sdn-6-repository-queries/28837/1 "2020-11-11T16:40:50Z")

</div>

I am trying out SDN 6.0.1 and am trying to figure out what is the default query depth for generated repository queries. I cannot find anything about it in the documentation.

Also, is there a way to adjust the depth of the query, as it was possible with previous SDN versions?

---

<div class="post-metadata">

**Author:** ![gerrit.meier](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/gerrit.meier/32/27374_2.png) [@gerrit.meier](https://community.neo4j.com/u/gerrit.meier)\
**Post date:** [November 12, 2020, 6:56am UTC](https://community.neo4j.com/t/what-is-the-default-query-depth-for-sdn-6-repository-queries/28837/2 "2020-11-12T06:56:49Z")

</div>

There is no variable depth anymore, neither for querying or saving. This is due to the fact that we wanted to align SDN 6 more with the overall Spring Data background "Domain Driven Design".  
If you wonder what happens in the background, there is an explanation of the query creation in the appendix of the documentation. `12. Spring Data Neo4j Appendix` -\> `Query creation` (Sorry I cannot link it right now because the documentation with the anchor fixes were not updated yet)

Thanks for pointing out that the documentation is missing this bit to make our intention clear.
