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

n1ql

#1

@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


#2

Did you try with web console.


#3

i am trying it from Java code.