code: protected function with($query, EncodingParametersInterface $parameters)
      {
          $query->with($this->getRelationshipPaths(
              (array) $parameters->getIncludePaths()
          ));
      }
docs: Add eager loading to the query.
  
  @param Builder $query
  @param EncodingParametersInterface $parameters
  @return void