Is there a way to work with Room database with RxJava3?
the problem that when i try to return Observable or Single from Room Query it shows me the error below:
error: Not sure how to convert a Cursor to this method's return type
public abstract io.reactivex.rxjava3.core.Single<java.util.List<com.osama.movieshow.data.movie.Movie>> getAllFavorites();
My Room query:
@Query("select * from favorites")
fun getAllFavorites():Single<List<Movie>>
and i'm importing Single from import io.reactivex.rxjava3.core.Single