And somewhat related, is following recommended way...
# kodein
j
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
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.