-
-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
enhancementNew feature or requestNew feature or request
Description
General Info
- I installed the latest version of Supabase Kt
- I checked for similar feature requests
Feature request
I was curious if it would be possible to implement such a function? I've currently written
suspend fun AdminApi.retrieveUsersByIds(uids: List<String>): List<UserInfo> = coroutineScope { uids.map { uid -> async { retrieveUserById(uid) } }.awaitAll() }
but was curious if there would be a more efficient method instead of doing individual calls and waiting? I see in AdminApi there is:
override suspend fun retrieveUserById(uid: String): UserInfo { return api.get("admin/users/$uid").safeBody() }
I don't know if there currently exists an API function/path to achieve the behaviour i want (select multiple UserInfo objects by a list of IDs).
Usecase
Getting multiple UserInfo objects within a single call instead of multiple individual.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request