Json tree structure apoc.convert.toTree usage


I need cypher query, that would return me tree structure in json.

I tried apoc.convert.toTree <- its great, it returns tree structure and all properties of the leaf(child) nodes.
But i need only tree structure and id-s from the leaf(child) nodes and the best if it would happen on database level, not the application side, cause otherwise too much information is transmitted.

Is this possible using apoc.convert.toTree or some other method ?

Related to this question, created APOC issue