How to select field from document using n1ql and springdata

hi,

i want to select a field from document:
my document is like:

{
store:1234;
categories:[“A”, “B”]
}

i wana select only the field categories:

@Query(“SELECT #{#n1ql.categories} FROM #{#n1ql.default} WHERE #{#n1ql.filter}”)
List findAllCategory();

are you hitting any error?? what are the versions? Documentation explains it further…
http://docs.spring.io/spring-data/couchbase/docs/current/reference/html/#couchbase.repository.n1ql