getUserOwnedCollections

@Query(value = ""SELECT c.* FROM " + COLLECTIONS_KEY + " as c WHERE c." + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY", nativeQuery = true)
abstract fun getUserOwnedCollections(@Param(value = "user_id") userId: String): List<LinksCollection>

Method to execute the query to get the user's owned collections

Return

the user collections as List of LinksCollection

Parameters

userId

: the identifier of the user