Sending Multiple Ids as input how to set those into n1ql query

@Query(“select * from bucket_name where lastName = $1”)
List getByName(String lastName);

This is working fine and getting the results

where as:

what if i want two records as outputs by passing two lastnames to a method like below
@Query(“select * from bucket_name where lastName IN [$1 , $2]”)
List getByName(String lastName, String lastName)

this is not working can any one suggest me on this please

And i want to see how the query will be if i pass a list of lastNames like below
@Query("select * from bucket_name where lastName = $1 ")
List getByName(List lastNames)

this is not working can any one suggest me on this please

Did you try with web console.

i am trying it from Java code.