Skip to main content
New Participant
Sep 5, 2019 5:23 AM UTC
Solved

Query Direct Child- AEM

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.
Umesh_Sondhi
Umesh_SondhiAccepted solution
Level 4
Sep 5, 2019 6:03 AM UTC

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
Sep 5, 2019 6:04 AM UTC

you can get the useful information from -Query Builder API

Translate
Umesh_Sondhi
Umesh_SondhiAccepted solution
Level 4
Sep 5, 2019 6:03 AM UTC

hi

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

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

thnkx

Translate
New Participant
Sep 5, 2019 5:36 AM UTC

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

Translate
Umesh_Sondhi
Level 4
Sep 5, 2019 5:29 AM UTC

Hi,

Can you please post your recursive request ?

Translate