use query for getChildren