https://kotlinlang.org logo
#kodein
Title
# kodein
j

John O'Reilly

10/03/2020, 2:49 PM
And somewhat related, is following recommended way to get back a list
Copy code
db.find<Network>().all().useModels { it.toList() }
https://github.com/Kodein-Framework/Kodein-DB includes example of use of
models()
but that's not resolving here
r

romainbsl

10/05/2020, 7:22 AM
Sorry for that.
useModels { }
is a last minute implementation.
models()
doesn’t exists anymore. we will update the docs.
also, if you have any suggestion regarding the API use, do not hesitate to ping us.