findByNamePrefix

open fun findByNamePrefix(namePrefix: String): List<Product>

Finds products by its prefix or the name itself. Matching is normalized, so "Apple" finds also "apple".

Return

The firsts product matching, otherwise empty list if no product was found.

Parameters

namePrefix

The name of the product.