lib/modules/apostrophe-pages/lib/api.js
function getChildren(cb) {
          const path = self.matchDescendants(page);
          self.find(req, { path: path }).sort({ path: 1 }).toArray((err, res) => {
            if (!err) {
              tree = tree.concat(res);
            }
            return cb(err, res);
          });
        }
function getChildren(cb) {
          const path = self.matchDescendants(page);
          self.find(req, { path: path }).sort({ path: 1 }).toArray((err, res) => {
            if (!err) {
              tree = tree.concat(res);
            }
            return cb(err, res);
          });
        }
function getChildren ( cb ) { const path = self . matchDescendants ( page ) ; self . find ( req , { path : path } ) . sort ( { path : 1 } ) . toArray ( ( err , res ) => { if ( ! err ) { tree = tree . concat ( res ) ; } return cb ( err , res ) ; } ) ; }
get all children of page
get all children of page