pub async fn find(
search_parameters: SeedSearchParameters,
page_parameters: PageParameters,
user_id: Uuid,
app_data: &Data<AppDataInner>
) -> Result<Page<SeedDto>, ServiceError>
Expand description
Search seeds from the database.
Seeds are returned in ascending order of their use_by
dates.
If that is not available, the harvest year is used instead.
By default, archived seeds will not be returned.
This behaviour can be changed using search_parameters
.
Errors
If the connection to the database could not be established.