IdanAizikNissim / pocketbase-kt

PocketBase Kotlin SDK
2 stars 2 forks source link

Allow multiple record services for same collection #1

Closed IdanAizikNissim closed 3 weeks ago

IdanAizikNissim commented 3 weeks ago

To allow Expend field a multiple Serializable class for same collection can be provide, require chat to (Pocketbase.kt)

        val service =
            (recordServices[idOrName] as? RecordService<T>) ?: RecordService(
                client = this,
                cls = cls,
                collectionIdOrName = idOrName,
            )

        recordServices[idOrName] = service
IdanAizikNissim commented 3 weeks ago

2