Specify depth of children

I feel like this is a simple question, but I’m struggling to find a solution. I have a query in my blueprint, which allows you to attached related page from the website but I would like it to be limited to top level children only.

This works fine but I don’t want to allow all children, just the immediate ones to products.

query: site.find('products').children

#But that’s exactly what the query does. Children are children, not grandchildren or even further down the line. So there is nothing like a depth of children, just like in real life…

However, to prevent the tree in the dialog, see Pages | Kirby CMS

That’s what I assumed would happen but as you pointed out, it was the dialog that was allowing subpages.

subpages: false

did the trick. Thanks for point me in right direction.