Ao tentar implementar a função abaixo:
fun listar( paginacao: Pageable ): Page{ val topicos = repository.findAll(paginacao) return topicos.map { t -> topicoViewMapper.map(t) } }
Aparece o seguinte erro:
None of the following functions can be called with the arguments supplied. findAll(Example<TypeVariable(S)!>) where S = TypeVariable(S) for fun <S : Topico!> findAll(example: Example<S!>): (Mutable)List<S!> defined in br.com.alura.Alura.Repository.TopicoRepository findAll(Pageable) defined in br.com.alura.Alura.Repository.TopicoRepository findAll(Sort) defined in br.com.alura.Alura.Repository.TopicoRepository