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

Query Direct Child- AEM

  • September 5, 2019
  • 4 replies
  • 4135 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

anujg3325839
Employee
September 5, 2019

you can get the useful information from -Query Builder API

Umesh_Sondhi
Umesh_SondhiAccepted solution
New Participant
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

New Participant
September 5, 2019

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

Umesh_Sondhi
New Participant
September 5, 2019

Hi,

Can you please post your recursive request ?