package dev.fyloz.trial.colorrecipesexplorer.repository;

import dev.fyloz.trial.colorrecipesexplorer.model.Recipe;
import dev.fyloz.trial.colorrecipesexplorer.model.RecipeStep;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StepRepository extends JpaRepository<RecipeStep, Long> {

    List<RecipeStep> findAllByRecipe(Recipe recipe);

}
