Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Query Direct Child- AEM

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Level 5

hi

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

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

thnkx

View solution in original post

4 Replies

Avatar

Level 5

Hi,

Can you please post your recursive request ?

Avatar

Level 1

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

Avatar

Correct answer by
Level 5

hi

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

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

thnkx

Avatar

Level 3

you can get the useful information from -Query Builder API