get Group By Name

@Query(value = ""SELECT * FROM " + GROUPS_KEY + " WHERE " + AUTHOR_KEY + "=:" + AUTHOR_KEY + " AND " + NAME_KEY + "=:" + NAME_KEY", nativeQuery = true )
abstract fun getGroupByName(@Param(value = "author") userId: String, @Param(value = "name") name: String): Group

Method to execute the query to select a Group by its name

Return

the group as Group

Parameters

userId

The user identifier

name

: the name of the group to fetch