I am trying to merge 2 queries to pass them as Options to display on my FirestoreRecyclerView. All the methods I found would merge only the Tasks and therefore I can pass the task on setQuery. Below is my query1 and query2 and I need to merge them in one query to display. How can I achieve this?
val query1 = firestoreRepo.getAllGames()
.whereEqualTo(Constants.PLAYER1ID, currentUserID)
.whereEqualTo("player2Id", argsId)
val query2 = firestoreRepo.getAllGames().whereEqualTo("player2Id", currentUserID)
.whereEqualTo("player1Id", argsId)
val options: FirestoreRecyclerOptions<Games> = FirestoreRecyclerOptions.Builder<Games>()
.setQuery(query, Games::class.java)
.setLifecycleOwner(this)
.build()