leave Group

@Modifying(clearAutomatically = true )
@Query(value = ""DELETE FROM " + GROUP_MEMBERS_TABLE + " WHERE " + GROUP_MEMBER_KEY + "=:" + GROUP_MEMBER_KEY + " AND " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true )
abstract fun leaveGroup(@Param(value = "id") memberId: String, @Param(value = "group_member") groupId: String)

Method to execute the query to leave from a group

Parameters

memberId

: the member identifier

groupId

: the group identifier