Expand my Community achievements bar.

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