Query Direct Child- AEM

Avatar

Avatar

hershc44871107

Avatar

hershc44871107

hershc44871107

04-09-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Umesh_Sondhi

MVP

Avatar

Umesh_Sondhi

MVP

Umesh_Sondhi
MVP

04-09-2019

hi

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

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

thnkx

Answers (3)

Answers (3)

Avatar

Avatar

anujg3325839

Avatar

anujg3325839

anujg3325839

04-09-2019

you can get the useful information from -Query Builder API

Avatar

Avatar

hershc44871107

Avatar

hershc44871107

hershc44871107

04-09-2019

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

Avatar

Avatar

Umesh_Sondhi

MVP

Avatar

Umesh_Sondhi

MVP

Umesh_Sondhi
MVP

04-09-2019

Hi,

Can you please post your recursive request ?