Fetching list query for working with spring boot

ım trying to fetch list of another class’s members with this query in UserRepository:

@Query("SELECT actions FROM #{#n1ql.bucket} WHERE userName = $1 AND #{#n1ql.filter}")
    List<ActionsDto> getActionsByUserName(String userName);

but ım getting an “Parsing of the input failed” error.
what am ı doing wrong?

It would be helpful to see the complete exception as it will contain the query text with replacements made.

Also - the @Query must project __cas and __id - I believe that you posted in stackoverflow and I answered your post there. nosql - How to fetch a list from document using n1ql with spring-data-couchbase - Stack Overflow