How to search children with relatedTo param My templates that referenced entry.children or entry.getChildren() have started throwing deprecation notices:


  Calling getChildren() to fetch an element’s target relations has been deprecated. Use the relatedTo param instead.


What is the preferred way to search for an entry's children — either ALL of its children, or just its direct children — using the relatedTo() param?
It appears the preferred way is by using getDescendants() — In fact, the children property is actually an alias for getDescendants(1). (The parameter specifies a maximum distance (i.e. number of levels) of the child from the parent.)