public function queryToMany($relation, EncodingParametersInterface $parameters)
    {
        return $this->queryAllOrOne(
            $relation->newQuery(),
            $this->getQueryParameters($parameters)
        );
    }
public function queryToMany($relation, EncodingParametersInterface $parameters)
    {
        return $this->queryAllOrOne(
            $relation->newQuery(),
            $this->getQueryParameters($parameters)
        );
    }
public function queryToMany ( $ relation , EncodingParametersInterface $ parameters ) { return $ this -> queryAllOrOne ( $ relation -> newQuery ( ) , $ this -> getQueryParameters ( $ parameters ) ) ; }
Query the resource when it appears in a to-many relation of a parent resource.

For example, a request to `/posts/1/comments` will invoke this method on the
comments adapter.

@param Relations\BelongsToMany|Relations\HasMany|Relations\HasManyThrough|Builder $relation
@param EncodingParametersInterface $parameters
@return mixed
@todo default pagination causes a problem with polymorphic relations??
Query the resource when it appears in a to - many relation of a parent resource .