findInputBy() public method

public findInputBy ( string $label, string $key, mixed $value ) : GraphAware\Common\Type\Node
$label string
$key string
$value mixed
return GraphAware\Common\Type\Node
 /**
  * @param int $id
  * @return \GraphAware\Reco4PHP\Result\Recommendations
  */
 public function recommendMovieForUserWithId($id)
 {
     $input = $this->service->findInputBy('User', 'id', $id);
     $recommendationEngine = $this->service->getRecommender("user_movie_reco");
     return $recommendationEngine->recommend($input, new SimpleContext());
 }