count
Devices
@Query(value = ""SELECT DISTINCT COUNT(*) FROM " + USER_DEVICES_KEY +
_WHERE_ + USER_IDENTIFIER_KEY + "=:" + USER_IDENTIFIER_KEY",
nativeQuery = true
)
Query used to count the total devices owned by a user
Return
the total devices as long
Parameters
userId
The identifier of the user