I want to fetch actions list in user class by username with this query but its not working
@Repository
public interface IUserRepository extends CouchbaseRepository<User,Long> {
@Query("SELECT actions from #{#n1ql.bucket} where #{#n1ql.filter} and userName = $1 ")
List<Action> getActionsByUserName(String userName);
where am ı doing wrong?