← Back to Stormify Documentation

findById

inline fun <T : Any> findById(id: Any): T?

Finds a single entity of type T by its primary key id, or null if not found.


fun <T : Any> findById(kclass: KClass<T>, id: Any): T?

Finds a single entity of kclass by its primary key id, or null if not found.