I want to retrieve all documents that exist based on list collection i have using spring-data-couchbase
Currently i am using
public interface PushRepository extends CrudRepository<Push,String>
and function pushRepository.findAll(phoneNumbers) but i think it is retrieving all of them and then do the filtering .
How can i run a N1QL query so i only retrieve documents on keys
@Query("#{#n1ql.selectEntity} WHERE role = 'admin' AND #{#n1ql.filter}")
Collection<Push> findByIds();
The query i want to run is the below
select * from activation use keys ["xxxxx","yyyyy"];