public function toEndpoints()
    {
        $endpoints = [];

        $children = $this->getChildEdges();
        foreach ($children as $child) {
            $endpoints[] = '/'.implode('/', $child);
        }

        return $endpoints;
    }
public function toEndpoints()
    {
        $endpoints = [];

        $children = $this->getChildEdges();
        foreach ($children as $child) {
            $endpoints[] = '/'.implode('/', $child);
        }

        return $endpoints;
    }
public function toEndpoints ( ) { $ endpoints = [ ] ; $ children = $ this -> getChildEdges ( ) ; foreach ( $ children as $ child ) { $ endpoints [ ] = '/' . implode ( '/' , $ child ) ; } return $ endpoints ; }
Convert the nested query into an array of endpoints.

@return array
Convert the nested query into an array of endpoints .