count User Owned Collections

@Query(value = ""SELECT COUNT(*) FROM " + COLLECTIONS_KEY + _WHERE_ + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY", nativeQuery = true )
abstract fun countUserOwnedCollections(@Param(value = "user_id") userId: String): Long

Method to count get the user owned collections

Return

the user collections as long

Parameters

userId

The identifier of the user