it.value.toString()
The toString function of a Map.Entry will add brackets around the string, which are then URL encoded to %5B and %5D which breaks the filter on the server side and returns nothing.
For example, if you call
Database(Client.client).listDocuments("123456", filters = listOf("author=me@example.com"))
https://github.com/appwrite/sdk-for-android/blob/609275595d65c750a7a0970312b21766ed526a6d/library/src/main/java/io/appwrite/Client.kt#L175
it.value.toString() The toString function of a Map.Entry will add brackets around the string, which are then URL encoded to %5B and %5D which breaks the filter on the server side and returns nothing.
For example, if you call Database(Client.client).listDocuments("123456", filters = listOf("author=me@example.com"))
The URL generated will be http://192.168.0.1/v1/database/collections/123456/documents?filters%5B%5D=%5Bauthor%3Dme%40example.com%5D
The expected URL looks like this http://192.168.0.1/v1/database/collections/123456/documents?filters%5B%5D=author%3Dme%40example.com
see https://pl.kotl.in/leQ4MEljA