我想检索基于我使用 spring-data-couchbase 的列表集合存在的所有文档
目前我正在使用
public interface PushRepository extends CrudRepository<Push,String>
和功能 pushRepository.findAll(phoneNumbers)
,但我认为它正在检索所有这些,然后进行过滤。
如何运行 N1QL 查询,以便仅检索键上的文档
@Query("#{#n1ql.selectEntity} WHERE role = 'admin' AND #{#n1ql.filter}")
Collection<Push> findByIds();
我要运行的查询如下
select * from activation use keys ["xxxxx","yyyyy"];