Query Direct Child- AEM | Community
Skip to main content
September 5, 2019
Solved

Query Direct Child- AEM

  • September 5, 2019
  • 4 replies
  • 4143 views

I am looking to access all direct child of a node. I have been trying query builder to do that. Presently it fetches all the children of a node. I want to have only direct child not recursive child.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Umesh_Sondhi

hi

you have to use  path.flat property to specify immediate child only

/querybuilder.json?path=/&path.flat=true&p.limit=10

thnkx

4 replies

Umesh_Sondhi
Level 4
September 5, 2019

Hi,

Can you please post your recursive request ?

September 5, 2019

yes, this is something like querybuilder.json?path=/&p.limit=10

Umesh_Sondhi
Umesh_SondhiAccepted solution
Level 4
September 5, 2019

hi

you have to use  path.flat property to specify immediate child only

/querybuilder.json?path=/&path.flat=true&p.limit=10

thnkx

anujg3325839
Adobe Employee
Adobe Employee
September 5, 2019

you can get the useful information from -Query Builder API